Cool!! Thanks for the help!! I tried using $_but then added some other bug when I did. I was unaware of both @_ and $/, so thank you for my introduction.

When you using the construct for $n (1..@_) is this working like a foreach construct?? $n equals each item in the list i.e. 1..@_??

One minor correction to the code, though.. I tried the moddifications and it didnt work properly unless
pack("v",shift) is changed to
pack("v",shift@_)

As far as using the list nature of pack, Im not sure I would know how to go about it. This was the hardest part for me to figure out. I dont completly understand how to use pack or unpack properly. I orginaly kept pulling my hair out thinking that unpack("B8",shift (@D)) should work. I didnt realize that I need to pack the binary string into actual binary data.

Thanks a lot for the suggestions!
zzspectrez


In reply to RE: RE: my first try: japh by zzspectrez
in thread my first try: japh by zzspectrez

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.