Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: true/false condition - what am I doing wrong?by sumeetgrover (Monk) |
on Dec 08, 2011 at 14:44 UTC ( [id://942454]=note: print w/replies, xml ) | Need Help?? |
Exactly! Taulmarill has pointed it out right. You are using a compound if statement without the appropriate syntax. Also, I notice in your code that you've declared the variables $type and $redo twice within the same lexical scope! You might like to change this.
In Section
Seekers of Perl Wisdom
|
|