Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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.


Comment on Re: Distinguishing a v-string from something else
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-10-20 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls