in reply to Simple Hash Question
UPDATE
good that you know you can use hashes, why you have not tried it?.
see here about hashes
for your case you can use some thing like below
see perlref for more details on references.my %flag; .. $flag{'user'} = $user; .. $flag{'uid'} = $uid; ... ... return %flag; at the calling place use my %userflags = buildCommand(..) then access the values like $userflags{'user'} or use references return \%flag; at the calling place use my $userflags = buildCommand(..) then access the values like $userflags->{'user'}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple Hash Question
by walkingthecow (Friar) on May 22, 2009 at 15:35 UTC |