Dave Rolsky wrote:

$VERSION = qw($Revision: 0.01 $) [1];


That's not CVS, is it?  If it is, please don't use it's revision numbers
directly (this is discussed in the dev docs I wrote).

And even if Dave hadn't prohibited that mode of operation, the above code is not backwards compatible to 5.005_03, which emulates qw() using split. This would be correct, though (note the movement of the parens):


$VERSION = (qw$Revision: 0.01 $)[1];

although this is even better (IMNSHO):

        use version;
        $VERSION = new version qw$Revision: 0.01 $;

see

http://search.cpan.org/author/JPEACOCK/version-0.28/

John

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748



Reply via email to