Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
The stupid question is the question not asked
 
PerlMonks  

Re: Shorten script

by ihb (Deacon)
on Jul 23, 2003 at 04:32 UTC ( [id://277078]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Shorten script

There has been other good replies already, so I'll leave it with that. Except there is (at least) one thing that everyone seem to have overlooked.

The $ct variable is increased for every hit, or more interestingly, for each time @files is increased. So that can be replaced by

$ct -= @files; while (my $line = <F>) { ... } # Old code without $ct $ct += @files;
HTH,
ihb

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://277078]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.