Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Passing results of a substitution to a function

by Anonymous Monk
on Jan 20, 2003 at 23:50 UTC ( #228526=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $word = 'BLAHBLAH'
    blah(grep {s/BLAH/COW/ || 1 } $word);
    
  2. or download this
    blah(grep(s/BLAH/COW/,$word)||$word)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://228526]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2023-09-30 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?