Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Using pattern match

by Moron (Curate)
on Aug 10, 2007 at 11:34 UTC ( #631764=note: print w/replies, xml ) Need Help??

in reply to Using pattern match

There is also the fact that single quotes produce literally what is there rather than translating $variables. The example with sub has used double quotes whereas the OP didn't. So instead of using sub, it so happens you could also achieve the delay by keeping the single quotes and putting an eval around what is being printed and of course it makes me wonder if the OP code originated in or was copied from that kind of example somewhere.

^M Free your mind!

Replies are listed 'Best First'.
Re^2: Using pattern match
by amarquis (Curate) on Aug 10, 2007 at 12:33 UTC

    Darn. It seems like every time there's an issue I can actually speak with some authority (quotes and variable interpolation), somebody has beaten me to the punch and has a better answer.

    Guess I'll just keep learnin' until I can answer the less easy stuff :).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://631764]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-05-21 03:48 GMT
Find Nodes?
    Voting Booth?