in reply to IP addresses?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IP addresses?
by phroggy (Monk) on Aug 18, 2005 at 17:33 UTC | |
by 5mi11er (Deacon) on Aug 19, 2005 at 15:46 UTC |