![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: single line if conditionalby tcf22 (Priest) |
on Mar 31, 2004 at 15:55 UTC ( #341325=note: print w/replies, xml ) | Need Help?? |
Works like the code says it should. I think you may want to set $hash{name} = "this and that" if $name is empty. I could be wrong. Right now you are doing the reverse. If it has something in it then you do the assignment. I have a hunch this is what you meant: What do you want this piece of code to do? What happens when you run it? - Tom
In Section
Seekers of Perl Wisdom
|
|