open (FILE, '>', "temp") or do { warn "error message"; $x=1 }; [download]
In reply to Re: Question about warn statement by CombatSquirrel in thread Question about warn statement by Anonymous Monk