Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Can Perl add single quotes?

by yakko (Friar)
on May 18, 2001 at 09:17 UTC ( #81435=note: print w/ replies, xml ) Need Help??

in reply to Can Perl add single quotes?

how about:

sub reality_test { do { my $testme=shift; #do tests print "$testme was less than allowed\n" if test fails; } while(@_); }
That way, you don't use globals to pass to your subs, and you get variable interpolation, as '$var in single quotes' doesn't get expanded.

(argh, Opera managed to munge that a bit. corrected)

Me spell chucker work grate. Knead grandma chicken.

Comment on Re: Can Perl add single quotes?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2015-11-28 05:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls