Multi Line text processing

2004-11-01 Thread Anish Kumar K.
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

Re: Multi Line text processing

2004-11-01 Thread Gunnar Hjalmarsson
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

Re: Multi Line text processing

2004-11-01 Thread Ajey Kulkarni
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

Re: Multi Line text processing

2004-11-01 Thread Octavian Rasnita
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

Re: Multi Line text processing

2004-11-01 Thread Wiggins d Anconia
: 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

Re: Multi Line text processing

2004-11-01 Thread Chasecreek Systemhouse
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: