so that I get a default if the var isn't definedNo. What you get is a default if the var is false. undef, zero and "" are all values of false. What you want is the // operator, coming soon in perl 5.10. Until then, if you want to check for an expression being undefined, stay safe and use defined.
It's late. I'm tired. I'm going to bed
In reply to Re: What protects me from doing this stupid thing..?
by FunkyMonk
in thread What protects me from doing this stupid thing..?
by Cody Pendant
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |