Sorry, i'd tried it on win98, freebsd,linux, and win2k, and it'd worked..
but i'd also had ansi.sys loaded on win98/dos.. here it is without ansi codes (:
#!/usr/bin/perl -w
use strict;map{chomp;print pack("H*","$_");}<DATA>
__DATA__
4a20412050204820200a1b5b6d75206e2065
206120200a73206f2072206320200a742074
206c206b20200a2020682020206520200a20
20652020207220200a202072202020202020
0a2008200820082008200820082008200820
082008200820082008200820082008200820
0820
0820
08
20
20
08
20
08
20
07
20
08
20
08
20
08
as a side note, it's also possible to edit it if you know what the hex codes mean (:
i wouldn't be surprised if some of the monks around here, having more experience with pack()/unpack() than myself, were able to decypher it without using any pack method at all. (8
also, the ascii codes for \b (08) and " " (20) seem to work fine on the machine i'm using to reply (win98). let me know if they're fudging the effort up on your end.
strfry()
"
and have a pleasant tomorrow..." -- SNL,
Weekend Update
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.