Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Interesting. So, what exactly is perl doing?
DB<11> p 74.117.115.116; Just DB<12> p 74; 74 DB<13> p 74.117; 74.117 DB<14> p 74.117.115; Jus DB<15> p 74.117.32.32.44.115; Ju ,sThe dot operator is used to concatenate strings together, so as long as it doesn't look like a normal integer or floating point number, it assumes they are "strings", and perl is storing them as single byte integers (characters), rather than, for example, the string "74". When printed, out come their ascii representations. Is this a good description of what's going on internally, or is there some further magic to be explained? -Scott In reply to Re: IP addresses?
by 5mi11er
|
|