On Tue, 16 Sep 2003, Byron Clark said:
> On Tue, Sep 16, 2003 at 08:08:36PM -0700, Corey Edwards wrote:
> >
> > $ perl -e 'use MIME::Base64; while ($_=<>){ \
> > print decode_base64($_); }' >image.jpg
> >
>
> Hmmm.... perl wizards out there: would there be any difference between
> that command and this one:
>
> $ perl -MMIME::Base64 -n -e 'print decode_base64($_);' > image.jpg
>
> It works when I test it. Is there any way to get rid of the '$_' as an
> argument to decode_base64?
Sure. Just skip perl entirely! You don't have to be a perl wizard to be
a wizard :)
$ mimencode -u image.txt -o image.jpg
(where image.txt contains just the data, not the header/footer)
Frank
---------------------------------------------------------------------------
Frank Sorenson - KD7TZK
CSR Computer Science Department
Brigham Young University
[EMAIL PROTECTED]
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list