in reply to RPC
Change this:
To this:open( 'USERS' , 'file' );
and while we're at it, let's check the results of the open:open( USERS , 'file' );
open(USERS, 'file') or die "unable to open `file': $!";
Update: my hat's off to tye on the use of a string literal for a filehandle. How many times have I glossed over the following in perlfunc and not noticed?
I suppose what threw me is that I've seen no examples of literal strings used to specify filehandles. Live and learn.If FILEHANDLE is an expression, its value is used as the name of the real filehandle wanted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: RPC
by tilly (Archbishop) on May 05, 2001 at 19:03 UTC |