...but then $x is still undefined outside the do{} block (which may or may not be a problem).
my $x; open (FILE, ">temp") || do { warn "error message"; $x = 1; } print "\$x is $x";
dave
In reply to Re: Re: Question about warn statement
by Not_a_Number
in thread Question about warn statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |