Anonymous user
Parse an IP Address: Difference between revisions
m
→version 1: edlied scroll from PRE tag, used a template for the output section.
(→{{header|Perl 6}}: Now parses '::' correctly) |
m (→version 1: edlied scroll from PRE tag, used a template for the output section.) |
||
Line 2,362:
say left(a,30) right(hx,32) right(x2d(hx),39) ' IPv' || (6-2*dot) right(port,5)
return</lang>
<pre>
input IP address hex IP address decimal IP address space port
────────────────────────────── ──────────────────────────────── ─────────────────────────────────────── ───── ─────
|