Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Distinguishing a v-string from something else

by converter (Priest)
on Dec 04, 2002 at 23:25 UTC ( #217625=note: print w/replies, xml ) Need Help??

in reply to Distinguishing a v-string from something else

The v-string is just a convenient way for the programmer to construct a literal string composed of (possibly) non-printable characters.

$string = v1.2.42; # or $string = 1.2.42; # is just an easier way of writing: $string = "\x01\x02\x2a";

It doesn't matter how the programmer using your code wrote the string expression, the result is the same. If your code expects a string limited to a certain subset of characters, then you should validate the input.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://217625]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2016-10-24 13:06 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.