in reply to How do i get EOF to work?
Hope this helps.#!/usr/bin/perl use strict; my $file = "/etc/passwd"; open(PASSWD, $file) or die "Couldn't open $file: $!\n"; unless(eof(PASSWD)) { print $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do i get EOF to work?
by zentara (Cardinal) on Aug 17, 2002 at 22:20 UTC |