Jeff Weisberg on 4 May 2005 13:24:39 -0000 |
> foreach $line (@template) { > $line =~ s/ZCITY/$city/ ; > $line =~ s/ZSTATE/$state/ ; > $line =~ s/ZZIP/$zip/ ; > printf OF $line ; > } the 'for' aliases $line to the elements of the template, it does not copy them. the s/// modifies the template. change this to: > foreach $line (@template) { > print STDERR $line; > [...] now see the problem? --jeff - **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|