in reply to checking if file is empty or not
hmm, this works but is probably inefficient.
Just thought I'd pose another solution
--=Lolindrath=--
open FILE, "Filename" || die; @file = <FILE>; close FILE; $file = join( "", @file); if ( $file ne "" ) { #there's something there! }
Just thought I'd pose another solution
--=Lolindrath=--
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (Buzzcutbuddha: Don't Reinvent The Wheel!): Re: checking if file is empty or not
by buzzcutbuddha (Chaplain) on Aug 07, 2000 at 18:57 UTC |
In Section
Seekers of Perl Wisdom