Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-08-31 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls