Skip to content

Instantly share code, notes, and snippets.

@S2
Created December 7, 2012 07:25
Show Gist options
  • Save S2/4231471 to your computer and use it in GitHub Desktop.
Save S2/4231471 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/perl
use 5.14.2;
use strict;
use warnings;
use utf8;
my @hoge = qw/aaa bbb/;
my @fuga = qw/111 222/;
for(@hoge){
say "outer:$_"; # aaa or bbb
for(@fuga){
say "inner:$_"; # 111 222
}
say "outer:$_"; # aaa or bbb
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment