It might be instructive to run this from the command line with the debugger enabled. Step through the script and pay particular attention to what happens when you play with the values of "$newer_option". If I were held to a quick bet, I'd say that you are passing an invalid option or directory to your tar(1), and it's throwing up its hands. You can check this by looking at the returns from the C<system> call
my $ret_c = system ( ... );
print "$ret_c\n");
If this were me, I'd also do some sanity checking on the parameters, just to make sure that they were what I expected them to be, not that anyone would try to insert malicious code starting with a semi-colon ....
Finally, your filter-loader doen't seem to be involved at all in this test script. Was that intentional? Or does the new-filter get installed between tar(1) and the input file-list?
I Go Back to Sleep, Now.
OGB
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.