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

Re: Out of memory error!!!

by McA (Priest)
on Mar 27, 2013 at 22:05 UTC ( #1025815=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
  2. or download this
    use strict;
    use warnings;
    
  3. or download this
    open (INFO, "<", "$File") or die("Cannot open the flat file");
    open(my $LOG,">>LOG_file") or die("Cannot open");
    open(XML,">xml_file") or die("Cannot open");
    
  4. or download this
    open(my $INFO, '<', $File) or die "Cannot open the '$File': $!;
    open(my $LOG, '>>' 'LOG_file') or die "Cannot open 'LOG_file: $!";
    open(my $XML, '>', 'xml_file') or die "Cannot open 'xml_file': $!";
    
  5. or download this
    while(defined(my $line2 = <$INFO>)) {
    }
    
  6. or download this
    chomp $line2;
    
  7. or download this
    my %config = (
        '00' => {
    ...
            die "ERROR: Unknown segment '$segment'. Config or data error?"
    +;
        }
    }
    
  8. or download this
    close $INFO or die "Can't close file '$File': $!";
    close $LOG or die "Can't close file 'LOG_file': $!";
    close $XML or die "Can't close file 'xml_file': $!";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-04 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls