Hi
I am new to perl text processing...
I want to replace a text from a file say a.txt.
a.txt contains
line1: this is
line 2: a
line 3: apple
I wanted to replace to this is an orange..
When I see perl change.pl FILENAME
it shld change all the occurence of this is a apple to this is an
Anish Kumar K. wrote:
I want to replace a text from a file say a.txt.
a.txt contains
line1: this is
line 2: a
line 3: apple
I wanted to replace to this is an orange..
When I see perl change.pl FILENAME
it shld change all the occurence of this is a apple to this is an
orange. Not that this
my $txt = do { local $/; FILE };
Just on a side note, has any1 tried to get the MAX FILE SIZE that
can be slurped into a scalar variable? Is there any limit? Where
can i get such info??
Regards
~A
On Mon, 1 Nov 2004, Gunnar Hjalmarsson wrote:
Anish Kumar K. wrote:
I want to replace a text
The answer is the entire memory of your computer.
Teddy
- Original Message -
From: Ajey Kulkarni [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 01, 2004 9:27 PM
Subject: Re: Multi Line text processing
my $txt = do { local $/; FILE };
Just on a side note, has any1
: Multi Line text processing
my $txt = do { local $/; FILE };
Just on a side note, has any1 tried to get the MAX FILE SIZE that
can be slurped into a scalar variable? Is there any limit? Where
can i get such info??
Regards
~A
On Mon, 1 Nov 2004, Gunnar Hjalmarsson wrote
On Mon, 1 Nov 2004 21:51:45 +0200, Octavian Rasnita [EMAIL PROTECTED] wrote:
The answer is the entire memory of your computer.
Which can slow your system down unless you got googles and googles,
erm I mean Oodles. LOL. anyways, Split them files up first: