Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created July 8, 2013 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/5946393 to your computer and use it in GitHub Desktop.
Save marcusramberg/5946393 to your computer and use it in GitHub Desktop.
- elsif (my $file = $flag) {
- $file =~ s!::|'!/!g;
- require "$file.pm" unless $flag->can('new');
+ elsif (my $file = $flag && ! $flag->can('new') {
+ $file =~ s!::|'!/!g;
+ require "$file.pm";
+ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment