in reply to interactive mode

Does typing

perl -de 0

at your prompt do what you want? If it doesn't, you might like to consider making your question a little clearer.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg