Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    say $array[FOO];  # OK
    say $array[BAH];  # Bareword "BAH" not allowed while "strict subs" in 
    +use
    say $array[$var]; # OK
    
  2. or download this
    use strict;
    use warnings;
    ...
    say $hash{+FOO};  # OK
    say $hash{+BAH};  # Bareword "BAH" not allowed while "strict subs" in 
    +use
    say $hash{+shift} # Bonus