![]() |
|
go ahead... be a heretic | |
PerlMonks |
RE: Return the contents of a fileby btrott (Parson) |
on Feb 04, 2000 at 23:31 UTC ( #2878=note: print w/replies, xml ) | Need Help?? |
Two things: 1) that while loop should read: Note the all-important ".=" instead of "=" (probably just a mistype on your part. :) 2) your opens should always check for error messages, and you should get faster results slurping the whole file in as one string, like so:
In Section
Snippets Section
|
|