Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Bug in substitution operator?

by rhesa (Vicar)
on Jan 10, 2009 at 21:09 UTC ( [id://735432]=note: print w/replies, xml ) Need Help??

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}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://735432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found