in reply to Re: Re: Distinguishing a v-string from something else
in thread Distinguishing a v-string from something else
v-strings are used by the VERSION argument in a use or require. You cannot pass anything else!
that is not correct.
#!/usr/bin/perl require 5.006_001; package vstring; our $VERSION = '1.0.1'; package number; our $VERSION = 1.34_001e-5; package string; our $VERSION = '1.2beta4a'; package main; print $vstring::VERSION, $/; print $number::VERSION, $/; print $string::VERSION, $/; ## prints: ## 1.01 ## 1.34001e-005 ## 1.2beta4a
don't use v-strings, there are alternatives.
~Particle *accelerates*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Distinguishing a v-string from something else
by John M. Dlugosz (Monsignor) on Dec 05, 2002 at 01:31 UTC |