Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

or just wait for perl 6

by jkahn (Friar)
on Aug 24, 2003 at 05:13 UTC ( #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!

Comment on or just wait for perl 6
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2015-05-25 06:40 GMT
Find Nodes?
    Voting Booth?

    In my home, the TV remote control is ...

    Results (479 votes), past polls