Skip to content

Instantly share code, notes, and snippets.

@sugyan
Created November 15, 2012 01:11
Show Gist options
  • Select an option

  • Save sugyan/4076002 to your computer and use it in GitHub Desktop.

Select an option

Save sugyan/4076002 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
sub hoge {
my ($func, @args) = @_;
$func->(@args);
}
hoge(sub {
print "$_\n" for @_;
}, 'fuga', 'piyo');
__END__
↓こういうインデントになってほしい
hoge(sub {
print "$_\n" for @_;
}, 'fuga', 'piyo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment