niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
Mason sharing variables, rookie alert :)
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Billy Patton
*nix forums beginner


Joined: 22 Apr 2005
Posts: 16

PostPosted: Thu Jul 13, 2006 2:51 pm    Post subject: Mason sharing variables, rookie alert :) Reply with quote

I have 2 components. One builds a hash. the next needs to read it.

ex: "A" module

<%share>
my %hash = ( 'dogs' => 'ok' ,'cats'=>'maybe');
</%share>

"B" module

<%perl>
my $dogs = $hash{'dogs'};
my $cats = $hash{'cats'};
print "dogs are $dogs and cats are $cats\n";
</%perl>
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 1:07 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts AIX HACMP & NFS sharing same mountpoint from SAN storage chongkls AIX 0 Fri Aug 31, 2007 9:03 am
No new posts Quoting, variables, and xterm graftonfot@yahoo.com shell 2 Thu Jul 20, 2006 2:26 pm
No new posts Question on comparing to variables containing integers huub Perl 14 Thu Jul 20, 2006 11:02 am
No new posts tape drive sharing shuklameeta@yahoo.co.in Solaris 6 Thu Jul 20, 2006 10:32 am
No new posts Interpret variables in strings in ksh greenhakan@gmail.com shell 2 Wed Jul 19, 2006 2:03 pm

Insurance | Xbox Mod Chip | ModernForums | Remortgages | Advertising
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1652s ][ Queries: 16 (0.1040s) ][ GZIP on - Debug on ]