develooper Front page | perl.perl5.porters | Postings from February 2004

Suggested replacement for v-strings

Thread Next
From:
David Town
Date:
February 23, 2004 05:56
Subject:
Suggested replacement for v-strings
Message ID:
2B3D0F99A26BD611977000204840E28204E9FE8B@whq-msgusr-01.pit.comms.marconi.com
Hello,

With the deprecation of v-strings in Perl 5.8.1, what is the
suggested method to version a Perl module using the x.x.x
notation?

I started using the x.x.x notation for the Net::SNMP module
in November of 2001.  I originally just set the $VERSION
variable to a quoted string "x.x.x", but this caused problems
with the CPAN module.  It could not distinguish between
"3.9.1" and "3.9.2".  I asked the same question at that time
and was told to use v-strings.

Now that v-string are deprecated, what is the suggested method
for versioning?  I want to be compatible with Perl 5.6.0 and
beyond.

Thank you,

-David Town <dtown@cpan.org>

Via, but not speaking for Marconi Communications, Inc.


==========

Net::SNMP bug reported via rt.cpan.org:

[cpan #5262] Perl 5.8.1 & Net::SNMP 4.1.2 warning

This message about Net-SNMP was sent to you by guest <> via rt.cpan.org

Full context and any attached attachments can be found at:
<URL: https://rt.cpan.org/Ticket/Display.html?id=5262 >

When runnig under "perl -w" i get warnings:
v-strings are deprecated at /usr/lib/perl5/site_perl/5.8.1/Net/SNMP.pm line
109.
v-strings are deprecated at
/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/Message.pm line 24.
v-strings are deprecated at /usr/lib/perl5/site_perl/5.8.1/Net/SNMP/PDU.pm
line 24.
v-strings are deprecated at
/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/MessageProcessing.pm line 25.
v-strings are deprecated at
/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/Dispatcher.pm line 25.
v-strings are deprecated at
/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/Security.pm line 26.
v-strings are deprecated at
/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/Security/Community.pm line 29.
v-strings are deprecated at
/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/Security/USM.pm line 36.
v-strings are deprecated at
/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/Transport/UDP.pm line 28.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About