Bugzilla:Languages: Difference between revisions

(→‎Perl Pros: Add regex support)
Line 64: Line 64:
** The difference between () and [].
** The difference between () and [].
** The fact that %var is a () (which is also the array notation) but {} is $var.
** The fact that %var is a () (which is also the array notation) but {} is $var.
** The fact that subroutine arguments aren't really subroutine arguments, they're just an array that gets passed to a function.
** The fact that subroutine arguments aren't really subroutine arguments, they're just an array that gets passed to a function. (This also brings up confusion on the difference between using $_[1], my $var = shift, and my ($var) = @_.)
** The fact that $hash{'key'} and $hash{key} are the same.
** The fact that $hash{'key'} and $hash{key} are the same.
** qq[] is a string (as is qq{}, etc.), q[] is a string, though qw() is an array.
** qq[] is a string (as is qq{}, etc.), q[] is a string, though qw() is an array.
canmove, Confirmed users
345

edits