in reply to TIMTOWTDI Challenge: Open a file
Object-oriented (adapted from IO::File synopsis):
use IO::File; $fh = IO::File->new("< file"); $fh = IO::File->new("file", "r"); $fh = IO::File->new("file", O_WRONLY|O_APPEND);
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TIMTOWTDI Challenge: Open a file
by stonecolddevin (Parson) on Apr 27, 2006 at 23:30 UTC | |
by xdg (Monsignor) on Apr 28, 2006 at 00:25 UTC | |
by ikegami (Patriarch) on Feb 10, 2009 at 20:33 UTC |