Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 exploiting the Monastery: (11)
As of 2015-07-07 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls