Fun Perl question

Peter Corlett abuse at
Tue Feb 19 16:26:42 GMT 2008

On Tue, Feb 19, 2008 at 04:58:51PM +0100, Richard Foley wrote:
> Go on, put us out of our misery.

"-M:DProf" puts "use: DProf;" at the start of the script. This is a label
followed by a bareword, and because there's no strict, that's acceptable to
the interpreter.

It doesn't have to be a bareword either:

perl -M:die="Just Another Perl Hacker" -e0

More information about the mailing list