in reply to Re: file reading issues
in thread file reading issues
I notice you have a different method for reading an entire file into memory then I am used to seeing. I was wondering if there is any reason you are aware of that makes your way better or worse than the way I use (or if they are just different (TIMTOWTDI)). If there is, I'd love to hear about it.
read IN, my $html, -s $file; # your code my $file = do{ local $/; <IN> }; # The way I usually use.
Other monks... can anybody tell me if there is an advantage in one way or the other?
Update The secode line of cone above is the way I am used to seeing... I forgot to complete the comment. My question regards the difference between using $/ as opposed to using read to slurp in an entire file.
They say that time changes things, but you actually have to change them yourself.
Andy Warhol
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: file reading issues
by kwaping (Priest) on Aug 03, 2005 at 19:36 UTC | |
by JediWizard (Deacon) on Aug 04, 2005 at 02:57 UTC | |
by kwaping (Priest) on Aug 04, 2005 at 15:08 UTC | |
by JediWizard (Deacon) on Aug 04, 2005 at 16:49 UTC | |
|
Re^3: file reading issues
by anonymized user 468275 (Curate) on Aug 04, 2005 at 16:13 UTC |