# Munge the current line into what we want $line =~ s!^http://!url$counter=http://!i; $line =~ s!&!item=!g;