Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

deMize

by deMize (Monk)
on Mar 02, 2009 at 18:08 UTC ( #747512=user: print w/replies, xml ) Need Help??

my ($name,$city,$state,$country) = ("deMize","Washington","DC","USA");
my $age = <STDIN>;

chomp($age);

if ($age > 21 && age <92){
print "That is my age.";
}

1;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[choroba]: ovedpo15 Hard to tell without context. You probalby used $dir outside of its scope, which is the body of the "unless".
[choroba]: if you use unless as a statement modifier, you can't use the variable declared in the modifier in the statement.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-04-22 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?