in reply to RE: Default Line in Loops
in thread Default Line in Loops
or even: print do { local($/), <FH> }; But think, for a moment, about:print while <FH>;
You're now calling sort() in scalar context. It returns false, so that while() loop doesn't do jack. And I HIGHLY recommend againstwhile (sort <FH>) { print; }
Since that builds up a list of all the records in FH. -- japhy on EFnet, japh on DALnet, Jeff on Earthfor (<FH>) { print; }
|
|---|