Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: Out of memory error!!!

by marto (Bishop)
on Mar 27, 2013 at 19:26 UTC ( #1025794=note: print w/replies, xml ) Need Help??

in reply to Re^2: Out of memory error!!!
in thread Out of memory error!!!

Where you have:

open(my $LOG,">>LOG_file") or die("Cannot open");

Change it to:

open(my $LOG,">>LOG_file") or die("Cannot open: $!");

This will display more information as to why you couldn't open the file. See open, perlvar and since you're new to perl:

Replies are listed 'Best First'.
Re^4: Out of memory error!!!
by McA (Priest) on Mar 27, 2013 at 19:38 UTC

    Better change it to:

    my $filename = 'LOG_file'; open(my $LOG, '>>', $filename) or die("ERROR: Cannot open file '$filen +ame' for appending: $!");


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025794]
[Discipulus]: yes, some semantic for the searxh must implemented before using such kind of query
[Corion]: Yeah - I have either to come up with a better search query or simply steal the template of some other file download site... I'm thinking of turning the JSON for Strawberry Perl releases into a small website that offers the files for download, with a ...
[Corion]: ... separate page per release, and potentially RSS for the versions

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-02-28 08:33 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (398 votes). Check out past polls.