>>>>> "M" == M W Koskamp <[EMAIL PROTECTED]> writes:

>> > 
>> > That's too much there...
>> > 
>> >   /add_\w+/ and print("Yippie!\n"), last while $_ = each %hash;
>> > 
>> > "scalar each" is underutilized. :)
>> 

M> what happened to grep?

M> print "found it" if grep{$_ =~ /foo/}keys %bar

Well, if you're gonna grep, do it with minimal typing!

  print "found it" if grep /foo/, keys %bar

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to