in reply to Here document syntax, what is $0 (was: Newbie need a clue)

Beware... that regex is incomplete. You'll want:
$0 =~ s#.*/##s;
Or else you'll end up stopping on any newline in the string! Yes, unix paths can contain newlines in them.

-- Randal L. Schwartz, Perl hacker