in reply to perl -pie "???"

Perhaps next if $. == 1?

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Replies are listed 'Best First'.
Re^2: perl -pie "???"
by diotalevi (Canon) on Aug 17, 2004 at 21:26 UTC

    No. print occurs inside the continue block which is executed at the end of the while's block. next() just jumps right into continue.

    while ( <> ) { # YOUR CODE GOES HERE } continue { # next() resumes here. print }