in reply to How do I read an entire file into a variable?
8192 is arbitrary so optimize with glee.my $buf=$content=''; $content.=$buf while read(HANDLE,$buf,8192);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I read an entire file into a variable?
by TeeHee (Acolyte) on Dec 18, 2001 at 02:03 UTC |