Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Can Perl add single quotes?

by yakko (Friar)
on May 18, 2001 at 09:17 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found