On Wed, Dec 10, 2008 at 18:32, Dr.Ruud <[EMAIL PROTECTED]> wrote: snip > $ perl -wle' > my $ip = v23.34.45.56; > print ord substr $ip, -1; > ' > 56 > > > $ perl -wle' > my $ip = "23.34.45.56"; > print ord substr eval "v$ip", -1; > ' > 56 snip
I would have hoped perl would have thrown a warning about that, but since it doesn't (at least 5.8.8 and 5.10 don't), I will: from http://search.cpan.org/~rgarcia/perl-5.10.0/pod/perldata.pod#Version_Strings Note: Version Strings (v−strings) have been deprecated. They will be removed in some future release after Perl 5.8.1. The marginal benefits of v−strings were greatly outweighed by the potential for Surprise and Confusion. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.