Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2018-02-21 08:01 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (276 votes). Check out past polls.