Much better (and faster) than using joins, or loops to append. Keep it inside the {} block so that the change to $/ is only temporary. (also see $/ at perldoc). The file's entire content ends up in $slurp.# FILE is already open ... { local $/ = undef; $slurp = <FILE>; }
In reply to Re: Re: Re: foreach question
by BigLug
in thread foreach question
by glwtta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |