Crossfire was once rumoured to have said:
> But given what it looks like you're trying to do, you probably want to
> keep many filehandles open at once.. [one for each user], you probably
> want a construct like:
> 
> my %userfh;
> foreach my $user (@users) {
>       $userfh[$user] = new FileHandle ">> $user"; # note, this is WRONG.
>       if (defined $userfh[$user]) {
>         ....
>       }
> }

GRAH! I'm on crack!  this is what I get for answering questions before
I leave for work.

just replace all my ravings of $userfh[$user] with $userfh{$user}!

[x] is an array subscript.
{x} is a hash subscript.

-- 
--==============================================--
  Crossfire      | This email was brought to you
  [EMAIL PROTECTED] | on 100% Recycled Electrons
--==============================================--

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to