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
In reply to Re^2: file reading issues
by JediWizard
in thread file reading issues
by mojobozo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |