On Tue, Jan 15, 2002 at 10:33:48AM -0800, David Dyck wrote:
> On Tue, 15 Jan 2002 at 10:26 -0800, Susanne Bullo <sweetsue at sweethomes.com>...:
>> > Yes, actually I do intend that - the username to log in is just for the
> > database. Then there are several users within that database so $username
> > would have to be overwritten for each one.
> >
> > How do I go about checking the return result on my open()?
>> in perldoc -f open it states
> Open returns nonzero upon success, the undefined value otherwise.
> so test the return result.
Also, please read 'perldoc -f close'. It is just as important to check
the return value of close, if the filehandle in question was written to.
close Closes the file or pipe associated with the file
handle, returning true only if stdio successfully
flushes buffers and closes the system file
descriptor.
Have fun,
-C.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/