Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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.

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 musing on the Monastery: (4)
As of 2016-10-25 00:02 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.