Jump to content

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>
'''{{out|output'''|text=&nbsp; when using the internal default input:}}
<pre>
<pre style="overflow:scroll">
input IP address hex IP address decimal IP address space port
────────────────────────────── ──────────────────────────────── ─────────────────────────────────────── ───── ─────
Cookies help us deliver our services. By using our services, you agree to our use of cookies.