Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Distinguishing a v-string from something else

by converter (Priest)
on Dec 04, 2002 at 23:25 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found