| Server IP : 172.67.220.81 / Your IP : 216.73.216.81 Web Server : Apache System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64 User : xessglobal ( 271017) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /proc/thread-self/root/bin/ |
Upload File : |
#!/usr/bin/perl use strict; use Convert::UU 'uudecode'; die "Usage: $0 file\n" unless @ARGV==1; open F, $ARGV[0] or die "Couldn't open $ARGV[0]: $!"; my($uudecoded_string,$file,$mode) = uudecode(\*F); open F, ">$file" or die "Can't open >$file: $!"; binmode(F); print F $uudecoded_string; close F; chmod oct($mode), $file; __END__ =head1 NAME puudecode - perl replacement for uudecode =head1 SYNOPSIS puudecode inputfile =head1 DESCRIPTION Uudecode reads a uuencoded inputfile and writes the decoded string to the file named in the uuencoded string. It changes the permissions to the mode given in the uuencoded string. =head1 BUGS This implementation is much slower than most uudecode programs written in C. Its primary intention is to allow quick testing of the underlying Convert::UU module. =head1 SEE ALSO puuencode(1), Convert::UU(3) =head1 AUTHOR Andreas Koenig E<lt>[email protected]<gt> =cut