You're right but (as you mentioned) the fact that $x is undefined may not be a problem at all.
-- vek --my $x; open (FILE, ">temp") || do { warn "error message"; $x = 1; }; if ($x) { # so something }
In reply to Re: Re: Re: Question about warn statement
by vek
in thread Question about warn statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |