Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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: (5)
As of 2015-09-01 04:15 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (367 votes), past polls