How do get $i do increment inside the substitution below? Thanks Dave #!/usr/bin/perl -w
my $i = 0; while(<>) { chomp; s/name=\"order/name=\"order$i++/; print "$_\n"; } ================================================== Cora Connection: Your West African Music Source Resources, Recordings, Instruments & More! <http://www.coraconnection.com/> ================================================== -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]