On Jun 24, [EMAIL PROTECTED] said:
>Berkeley
>Instructor:
>
>with this:
>Berkeley
>
>Instructor:
>
>
>catch, Berkeley also appears elsewhere in file but I only want it changed
>if Instructor: follows
> 8 #read in whole file
> 9 undef $/;
>10
>11 while(<>){
>12 s{
>
Hi,
perhaps someone could shed some light on this...here's what I'm trying to do:
replace this pattern:
Berkeley
Instructor:
with this:
Berkeley
Instructor:
catch, Berkeley also appears elsewhere in file but I only want it changed
if Instructor: follows
here's the code that's not working:
--