Robert Osborne on 4 May 2005 13:45:30 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: Not understanding this behavior



>Here is the relevant section...
>------------------------------------------------------------

>    foreach $line (@template) {
>        $line =~ s/ZCITY/$city/ ;
>        $line =~ s/ZSTATE/$state/ ;
>        $line =~ s/ZZIP/$zip/ ;
>        printf OF $line ;
>    }

Try this:

foreach $line (@template) {
	  $foo = $line;
        $foo =~ s/ZCITY/$city/ ;
        $foo =~ s/ZSTATE/$state/ ;
        $foo =~ s/ZZIP/$zip/ ;
        printf OF $foo ;
}

--rob

-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**