in reply to end of file!
With a little help from the Perl Cookbook:
#!/usr/bin/perl -w use strict; my $filename = shift; my $line; open (FILE, "$filename") || die "Couldn't open file: $!\n"; do {$line = <FILE>} until eof; print "$line";
J. J. Horner Linux, Perl, Apache, Stronghold, Unix jhorner@knoxlug.org http://www.knoxlug.org/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: end of file!
by mrt (Acolyte) on Jul 26, 2000 at 20:13 UTC |