__PACKAGE__ __END__

TorgoX on 2002-05-30T07:49:11

Dear Log,

Random idea of the day: where you end packages with:

1;
__END__
instead end 'em with this:
__PACKAGE__ __END__
__PACKAGE__ is as good a true value as 1 is.

Just don't write "__END__ __PACKAGE__".


I like:

jjohn on 2002-05-30T11:59:50

my $last_line = "must return true";

Cute tricks

ziggy on 2002-05-30T13:09:27

If you turn of 'strict subs', you can do this:
__THE__
__END__
(That trick courtesy of The Damian.)

use Tron; # :)

Fletch on 2002-05-30T16:51:47

__END__
__OF__
__LINE__

Or ...

vsergu on 2002-05-30T18:25:14

__FILE__
__END__