> Let me clarify ths slightly.
> 
> I'm using backticks to run the command, so I can capture the output.
> But How do I read it sequentially, line by line.
> 
> I'm converting a file from ASCII -> BASE64, and want to read the
> converted file directly from the base64 conversion routine.

# one way:
use MIME::Base64;
local($/) = undef;
print encode_base64(<STDIN>);

> I can use:  $output = `base64 -e ASCIIFILE -`
> But how would I extract the line by line from $output?

foreach (split(/\n/, $output)) {
        # do stuff
}


-- 
Mark Thomas                    [EMAIL PROTECTED]
Internet Systems Architect     User Technology Associates, Inc.

$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
 

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to