XP is just a number | |
PerlMonks |
Re: using a pipeby wazzuteke (Hermit) |
on Dec 29, 2005 at 21:14 UTC ( [id://519881]=note: print w/replies, xml ) | Need Help?? |
Sounds like what you are trying to do is take the file contents, returned from the cat bash command, pipe it to gpg to create an un-encrypted password in a new file. At least, that's what the *nix syntax looks like.
If this is the case, I believe you can do this pretty simply by reading in the file using a standard open() and pipe it to gpg similarly to how you are doing it through your command line. So... Given the syntax of your command line interface to gpg, this should do the exact same thing, though via perl. NOTE: I didn't test this being that I don't know what you are really trying to do here. This is really more of an idea seed that will start pointing you in the right direction! Good luck!! ---hA||ta---- print map{$_.' '}grep{/\w+/}@{[reverse(qw{Perl Code})]} or die while ( 'trying' );
In Section
Seekers of Perl Wisdom
|
|