Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/perl/bin/perl use strict; use warnings; open (FILE, '<', 'sample.txt') or die "Could not open sample.txt: +$!"; while (<FILE>) { ....????? } close (FILE) or die "Could not close sample.txt: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deleting on Files
by Albannach (Monsignor) on Feb 28, 2007 at 16:48 UTC | |
|
Re: Deleting on Files
by philcrow (Priest) on Feb 28, 2007 at 16:09 UTC | |
|
Re: Deleting on Files
by friedo (Prior) on Feb 28, 2007 at 16:10 UTC | |
|
Re: Deleting on Files
by bart (Canon) on Feb 28, 2007 at 17:16 UTC | |
|
Re: Deleting on Files
by andye (Curate) on Feb 28, 2007 at 16:13 UTC | |
by Anonymous Monk on Feb 28, 2007 at 16:17 UTC | |
by andye (Curate) on Feb 28, 2007 at 16:23 UTC | |
by Anonymous Monk on Feb 28, 2007 at 16:23 UTC | |
by eric256 (Parson) on Feb 28, 2007 at 17:13 UTC |