Try/catch with eval would work but I don't really see why you need to operate on $_[0] .....
eval{$_[0] ||= 'blah'} if ( $@ ) { # handle exception.... print "blech!\n"; } # else .....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: How do I check if a scalar in @_ is writable?
by tachyon
in thread How do I check if a scalar in @_ is writable?
by beppu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |