Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://90230]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found