Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: IF NOT! IF NOT!

by runrig (Abbot)
on Aug 03, 2001 at 03:53 UTC ( #101846=note: print w/replies, xml ) Need Help??


in reply to Re: Re: IF NOT! IF NOT!
in thread IF NOT! IF NOT!

And that is using map in a void context (creating an array with map and throwing it away). Better to just use a for loop:
/home/ and print "$_\n" for @list;
Update: Damian's right (in reply below). reverse the logic:
/home/ or print "$_\n" for @list;

Replies are listed 'Best First'.
Re: Re: Re: Re: IF NOT! IF NOT!
by damian1301 (Curate) on Aug 03, 2001 at 04:29 UTC
    But you've got reverse logic too. You are NOT supposed to print it if it has home anywhere in it. So what you want is in Re: Re: Re: IF NOT! IF NOT!.

    $_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H; print chr($_-39); # Easy but its ok.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://101846]
help
Chatterbox?
[ambrus]: Corion: schmorp points out https://metacpan. org/pod/release/ KARASIK/Prima-1. 49/pod/Prima/File. pod,
[ambrus]: so there's an IO waiter (Prima::File) and a timer (Prima::Timer) maybe it's possible to write an AnyEvent loop driver over it, a saner one than POE

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2016-12-07 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.