Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Help me not use codefor($i=0;$i=$#array;$i++)/code...Please!

by Zaxo (Archbishop)
on Jun 21, 2001 at 02:30 UTC ( #90230=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Help me not use codefor($i=0;$i=$#array;$i++)/code...Please!
in thread Help me not use for($i=0;$i=$#array;$i++)...Please!

If you bracket it, the grep expression becomes a block. It can be as complicated as you please. If it evaluates true, $_ (possibly modified within the block) is placed in the returned array.

After Compline,
Zaxo

Update: Corrected block <-> expr terminology.

  • Comment on Re: Re: Re: Help me not use codefor($i=0;$i=$#array;$i++)/code...Please!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://90230]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2017-09-26 17:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (296 votes). Check out past polls.

    Notices?