Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Detecting if a scalar has a number or string

by rrwo (Friar)
on Nov 18, 2004 at 18:37 UTC ( [id://408846]=note: print w/replies, xml ) Need Help??


in reply to Re: Detecting if a scalar has a number or string
in thread Detecting if a scalar has a number or string

Counting on stringification is an interesting idea, but not reliable. Suppose I have a roman numerals class that behaves just like numeric variables, but outputs as roman numerals in string context?

  • Comment on Re^2: Detecting if a scalar has a number or string

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2025-01-23 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (66 votes). Check out past polls.