note
blazar
<p><em>I personally believe</em> that while <c>@_</c> should <strong>certainly</strong> not be used as a general purpose variable, <c>@array</c> is as a horrible a name as one can be. <em>It's like having a dog and calling it "dog!!"</em> FWIW, a single letter variable would be better, especially here, since it's used only in two lines - except that I would use two scalars instead. Even better: since the whole file is slurped anyway, how 'bout the following?</p>
<c>
my %data = map { chomp; split /\t/, $_, 2 } <FH>;
</c>
<p>(Of course, it will fail if there are not enough entries for some record. In which case it would require some sanitizing which is left as an exercise to the [ashnator|OP].)</p>
<div class="pmsig"><div class="pmsig-409850">
<small><c>-- </c><br/>
If you can't understand the [wp://incipit], then please check the <strong>[http://blazar.tumblr.com/post/17639246|IPB Campaign]</strong>.</small>
</div></div>
718152
718158