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

Re: User variables with two values?

by Khen1950fx (Canon)
on Aug 20, 2012 at 06:26 UTC ( #988398=note: print w/replies, xml ) Need Help??


in reply to User variables with two values?

You could use constants via Constant::Generate:
#!/usr/bin/perl -l use strict; use warnings; use Constant::Generate [qw(FOO)], -stringy_vars => 1, -start_at => 12; if (FOO == 12 and FOO eq FOO) { print "FOO is a dualvar"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988398]
help
Chatterbox?
[LanX]: it was just after Trump-ageddon and the Americans thought I'm ridiculing them ;)
Discipulus was not the title a bit provoking? ;=)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-11-20 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (292 votes). Check out past polls.

    Notices?