Skip to content

Instantly share code, notes, and snippets.

@perigrin
Created July 29, 2009 20:17
Show Gist options
  • Select an option

  • Save perigrin/158372 to your computer and use it in GitHub Desktop.

Select an option

Save perigrin/158372 to your computer and use it in GitHub Desktop.
$perl -MO=Deparse -e'for (@{ [qw( 1 2 3 )] }) { print $_++ }'
foreach $_ (@{['1', '2', '3'];}) {
print $_++;
}
-e syntax OK
$perl -MO=Deparse -e'for (qw( 1 2 3 )) { print $_++ }'
foreach $_ ('1', '2', '3') {
print $_++;
}
-e syntax OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment