--- Chris Charley <[EMAIL PROTECTED]> wrote:
>
> > This is creating a anonymous hash, correct?
>
> This is saying
> print unless the first field has been seen before
>
> which is what he wants his code to do.
>
> $h is a good short notation - but using %seen
> instead of %h may make it clearer for you.
>
> perl -ne 'print unless $seen{(split/:/)[0]}++'
>
> Chris
>
I understand what its doing, but just wanted make sure
if its creating a anonymous hash b/c of the { }. So is
it b/c u never said yes or no?
thank you
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/