Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Oh where has my memory gone?

by toolic (Bishop)
on Jun 09, 2008 at 20:23 UTC ( [id://691089]=note: print w/replies, xml ) Need Help??


in reply to Oh where has my memory gone?

This is completely unrelated to your issue, but these suggestions may be useful in the future:

Use the strictures:

use warnings; use strict;
Amongst other things, this will warn you that
Scalar value @in_items[0] better written as $in_items[0]

chomp can chomp all elements of a list at once, so there is no need to explicitly chomp each one:

chomp (my @in_items = @_);

It is a good practice to check the return value of open, opendir and system.

Avoid using $a and $b since they have special meaning for sort.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://691089]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found