Syntactic Confectionery Delight | |
PerlMonks |
Re: true/false condition - what am I doing wrong?by Taulmarill (Deacon) |
on Dec 08, 2011 at 14:23 UTC ( [id://942441]=note: print w/replies, xml ) | Need Help?? |
The correct way to use the teary operator would be like this: $redo = $type eq "add" ? "wiki_add2" : "wiki_edit2"; I would like to tell you what exactly happens, when perl executes your version. But to be honest i can't quite figure it out.
In Section
Seekers of Perl Wisdom
|
|