Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Out of Memory in Perl

by Cristoforo (Deacon)
on Jul 08, 2012 at 19:08 UTC ( #980606=note: print w/ replies, xml ) Need Help??


in reply to Out of Memory in Perl

open my $in, '<:raw', 'Sample_1.txt' or die;
open my $out, '>:raw', 'Google_1' or die;
I don't think using the raw layer buys you anything - your files are text files and I think the raw layer is for reading binary files mainly, but then I am not certain. I've never used it. The common form would probably be better (unless you have a reason to use raw).
open my $in, '<', 'Sample_1.txt' or die $!;
open my $out, '>', 'Google_1.txt' or die $!;


Comment on Re: Out of Memory in Perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-03 16:19 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 (54 votes), past polls