Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

or just wait for perl 6

by jkahn (Friar)
on Aug 24, 2003 at 05:13 UTC ( [id://286145]=note: print w/replies, xml ) Need Help??


in reply to multiple (different) substitutions on same $foo

According to Apocalypse 4, which reads:

Basically, the only difference between a given and a for is that a given takes a scalar expression, while a for takes a pre-flattened list and iterates over it.
given $foo { s/frog/toad/g; s/man/boy/; s/woman/girl; }

Hurry up, Larry!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found