good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: An easier way to construct lists of numbers?by yosefm (Friar) |
on Jan 24, 2004 at 15:39 UTC ( [id://323839]=note: print w/replies, xml ) | Need Help?? |
Very nice, Chady.
I'd like to add a few things: First, to filter out the unused ($lite[$something][5]) you can change: to:
Second, when you write a loop, you should try to include only the essential stuff in it, so your program runs faster and consumes less resources. so this:
can become: But it's also possible to give a file handle to print, like so: print HANDLE "Something\n"; and then you don't have to select and reselect at-all. My public key
In Section
Seekers of Perl Wisdom
|
|