Newbie question on substitution with Subroutines

2007-10-25 Thread minky arora
Hi Team, I need to make multiple substitutions in a file.There could be a situation where there are more than one substitution on a single line.I want to count the total # of substituitions.I need to use subroutines: I have 3 questions: 1) Do I have to make 3 separate Regex.How can it be done

Re: Newbie question on substitution with Subroutines

2007-10-25 Thread Paul Lalli
On Oct 25, 12:01 pm, [EMAIL PROTECTED] (Minky Arora) wrote: I need to make multiple substitutions in a file.There could be a situation where there are more than one substitution on a single line.I want to count the total # of substituitions.I need to use subroutines: Says who? Is this a

Re: Newbie question on substitution with Subroutines

2007-10-25 Thread Dr.Ruud
minky arora schreef: my ($count,$count1,$count3,$count2); Consider: my @count; -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/