aventix has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use NWLoader; 6563636060604b6e4b0f45344862271900030a2204456e5e43350272111e4b534f7048 +6f445a0b6643411
#!/usr/bin/perl use NWLoader; $user_id = $ARGV[0]; $customer_dir = $ARGV[1]; $domain_name = $ARGV[2]; $archive = $ARGV[3]; $newer_option = $ARGV[4]; chdir "$customer_dir/$domain_name"; system "tar czv --exclude='archives' $newer_option *"; exit 0;
package NWLoader; require 5.002 ; require DynaLoader; require Exporter; use Carp ; use strict; use vars qw($VERSION @ISA @EXPORT) ; @ISA = qw(Exporter DynaLoader); @EXPORT = qw( filter_add ); $VERSION = "0.01" ; sub filter_add { my $obj = 0 ; #Did we get a code reference? my $coderef = (ref $obj eq 'CODE') ; #If the parameter isn't already a reference, make it one. $obj = \$obj unless ref $obj ; $obj = bless ($obj, (caller)[0]); #finish off the installation of the filter in C. NWLoader::real_import($obj,(caller)[0],""); } sub import { filter_add( ); } bootstrap NWLoader $VERSION; 1; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Method to test output of Perl Source filter?
by sauoq (Abbot) on Nov 13, 2003 at 06:30 UTC | |
|
Re: Method to test output of Perl Source filter?
by Abigail-II (Bishop) on Nov 13, 2003 at 09:26 UTC | |
|
Re: Method to test output of Perl Source filter?
by Old_Gray_Bear (Bishop) on Nov 13, 2003 at 16:20 UTC | |
|
Re: Method to test output of Perl Source filter?
by liz (Monsignor) on Nov 13, 2003 at 08:40 UTC | |
by BUU (Prior) on Nov 13, 2003 at 08:51 UTC | |
by liz (Monsignor) on Nov 13, 2003 at 08:59 UTC | |
|
Re: Method to test output of Perl Source filter?
by aventix (Initiate) on Nov 13, 2003 at 20:50 UTC | |
|
Re: Method to test output of Perl Source filter?
by aventix (Initiate) on Nov 13, 2003 at 15:39 UTC | |
|
Re: Method to test output of Perl Source filter?
by aventix (Initiate) on Nov 20, 2003 at 22:49 UTC |