note
JediWizard
<p>Just a note:</p>
<code>
$contents = do{local $/; <FILEHANDLE>;};
</code>
<p>Should use less memory and (I believe) run faster than:</p>
<code>
@contents = <FILEHANDLE>;
$contents = join "", @contents;
</code>
<p>P.S. see [doc://perlvar] for info on $/</p>
<div class="pmsig"><div class="pmsig-391471">
<hr />
<p>They say that time changes things, but you actually have to change them yourself.</p><p class='indented'>—Andy Warhol</p>
</div></div>
499624
499624