本帖最后由 Demon 于 2012-7-22 21:28 编辑
- #!/usr/env/perl
- use MIME::Base64;
-
- $in = 'dy';
- $out = 'jg';
-
- open DY, '<', $in or die $!;
- open JG, '>', $out or die $!;
-
- while (<DY>) {
- if (/^thunder:\/\//i) {
- $url = substr(decode_base64(), 2, -2);
- print JG "$url\n"
- }
- }
-
- close DY;
- close JG;
复制代码
|