Re: opening a file
- From: Tad J McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Sat, 10 Jan 2009 07:07:42 -0600
George <george@xxxxxxxxxxxxxxx> wrote:
open(50, '<eph4.txt');
You should always, yes *always*, check the return value from open():
open(50, '<eph4.txt') or die "could not open 'eph4.txt' $!";
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
.
- Follow-Ups:
- Re: opening a file
- From: cartercc
- Re: opening a file
- References:
- opening a file
- From: George
- Re: opening a file
- From: cartercc
- Re: opening a file
- From: Jürgen Exner
- Re: opening a file
- From: George
- opening a file
- Prev by Date: Re: opening a file
- Next by Date: Re: I am needing a gentle introduction to accessing a perl array from a reference
- Previous by thread: Re: opening a file
- Next by thread: Re: opening a file
- Index(es):