Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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
  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?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2015-10-10 16:09 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (257 votes), past polls