in reply to Re: Re: hash/array
in thread hash/array
You should do like perlstyle says and include all relevant information in the error message. In this case that includes the filename:
If this appears within a function I would normally use Carp and then confess to the sad situation...my $file = "home/you/your.file"; open (FILE, "< $file") or die "Cannot read '$file': $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 3: hash/array
by malaga (Pilgrim) on Jan 26, 2001 at 10:34 UTC | |
by eg (Friar) on Jan 26, 2001 at 13:01 UTC | |
by Anonymous Monk on Jan 26, 2001 at 23:17 UTC | |
by tilly (Archbishop) on Feb 02, 2001 at 10:36 UTC | |
by malaga (Pilgrim) on Feb 02, 2001 at 23:25 UTC | |
by malaga (Pilgrim) on Feb 01, 2001 at 02:29 UTC | |
by repson (Chaplain) on Feb 01, 2001 at 17:29 UTC | |
| |
by malaga (Pilgrim) on Feb 02, 2001 at 23:23 UTC |