Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Can Perl add single quotes?

by Gloom (Monk)
on May 18, 2001 at 11:39 UTC ( #81442=note: print w/replies, xml ) Need Help??


in reply to Can Perl add single quotes?

You want check a variables by its name ? thus try something like this :
sub reality_test { my ( $var_name , $min , $max ) = @_; eval "print q($var_name is out of range !) if $var_name < $min or +$var_name > $max" } reality_test( '$foo' , 10 , 30 );
But is not really "programmatically correct" =)
__________________
Hope this helps

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-01-20 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?