I had a line of code that did something I did not want.
print "$ARGV[$.] $_";
What I was trying to do: print each line prefixed by its file name and line number. Points awarded to dws.
Double Bonus: The line that came before was while(<>) {}. Points awarded to gizmo_mathboy
Platinum Bonus: The line that came after was chomp; Notice the print line had no newline at the end. A couple of people guessed some really wierd things, but were thinking zebras instead of horses.
Global Thermonuclear War Bonus: dws came close, but no points. The special variables involved are:
Re: Platinum Bonus (Score:1)
It shouldn't need one. The $_line must already have one if you are looping with while(){} (unless you have -l on the #! line).
I think that I'm still missing something (apart from the black and white stripes). Does your code look like this:
If so the chomp() is unrelated to the print(). How could we guess that?
Re: Platinum Bonus (Score:1)
Oh well.