Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 studying the Monastery: (10)
As of 2015-10-13 07:40 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (296 votes), past polls