Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $v = 'x';
    print qq"$v{a}";
    __END__
    xa
    
  2. or download this
    use strict;
    my $v = 'x';
    print qq{$v{a}};
    __END__
    Global symbol "%v" requires explicit package name at -e line 3.
    
  3. or download this
       "a " . $b . " -> {c}";
    
  4. or download this
      "a " . $b -> {c};
    
  5. or download this
    use strict;
    my $var = "this";
    print "$var{whatever}";
    __END__
    Global symbol "%var" requires explicit package name at -e line 3.
    
  6. or download this
    use strict;
    my $var = "this";
    print "${var}{whatever}";
    __END__
    this{whatever}