Perl 6 An Introduction to Perl 6 #10

More consistent syntax

Perl uses "sigils" to indicate variable types:

$a     - scalar variable (integer, string, float, object)
@a     - array
%a     - hash

Perl 5: sigils could "change" based on the operation:

@a = ( 'alice', 'bob', 'carol' );
$first = $a[0];                      # note "$a" to access "@a"

Perl 6: sigils are invariant

@a = ( 'alice', 'bob', 'carol' );
$first = @a[0];                      # now always "@a"
Copyright © 2008 Patrick Michaud