package evgen; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(output_header output_footer output_event output_event_header output_event_footer); my $evno = 1; sub output_event { my($px, $py, $pz, $x0, $y0, $z0, $type) = @_; print < EOM } sub output_event_header { print < EOM $evno++; } sub output_event_footer { print < EOM } sub output_header { print < EOM } sub output_footer { print < EOM }