Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: string substitution

by mandog (Curate)
on Oct 08, 2003 at 16:35 UTC ( #297651=note: print w/replies, xml ) Need Help??


in reply to string substitution

What is the problem this is solving ?

You might consider a charactor class a boolean "or" and a start-of-line marker. See perldoc perlre for details

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://297651]
help
Chatterbox?
[Lady_Aleena]: Why does grep(/.*$in.*/, @my_modules) work but grep { $_ =~ /.*$in.*/; $_ } @my_modules not work? What did I do wrong in the second?
[tobyink]: Why are you returning $_ n your grep block? You should return a boolean.
[tobyink]: *in your grep block

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-05-27 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?