Merge pull request #2972 from hchienjo/perl_cheatsheet_fix

remove improper use of shift when unpacking from @ARGV
master
Rob Emery 2016-05-08 21:45:28 +01:00
commit bdf0a61cfd
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@
}],
"Basic Syntax": [{
"val": "Read command line params",
"key": "($a, $b) = shift(@ARGV);"
"key": "($a, $b) = @ARGV;"
}, {
"val": "Define subroutine",
"key": "sub p\\{my $var = shift; ...\\}"