Skip to content

Instantly share code, notes, and snippets.

@clrh
Created May 28, 2012 14:10
Show Gist options
  • Select an option

  • Save clrh/2819384 to your computer and use it in GitHub Desktop.

Select an option

Save clrh/2819384 to your computer and use it in GitHub Desktop.
package A;
use Bou;
use Modern::Perl;
sub truc {
warn "truc";
machin;
warn "end";
}
1;
package Bou;
use Modern::Perl;
our (@ISA,@EXPORT);
BEGIN {
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw /machin/;
}
sub machin {
warn "machin";
}
1;
#!/bin/perl
use A;
use Modern::Perl;
A::truc;
Bou::machin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment