/usr/share/doc/libaspect-perl/examples/Wormhole/before.pl is in libaspect-perl 1.04-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/usr/bin/perl
use strict;
use warnings;
my $printer = Printer->new;
my $job = SpamPrintJob->new;
$printer->print($job);
# -----------------------------------------------------------------------------
package Printer;
sub new { bless {}, shift }
sub print {
my ($self, $job) = @_;
$job->spool;
}
# -----------------------------------------------------------------------------
package SpamPrintJob;
sub new { bless {}, shift }
sub spool { SpamDocument->new->spool }
# -----------------------------------------------------------------------------
package SpamDocument;
sub new { bless {}, shift }
sub spool {
# run system print command on spam postscript file
print "SpamDocument has been spooled.\n";
}
|