Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Efficiency of $$var, ${$var}

by MZSanford (Curate)
on Aug 20, 2001 at 13:35 UTC ( #106161=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print "b : $$b\n";
    
    print "b2 : ${$b}\n";
    
  2. or download this
    perl -MO=Deparse,-p test_ref.pl
    
    ...
    print("b : $$b\n");
    print("b2 : ${$b;}\n");
    test_ref.pl syntax OK
    
  3. or download this
    perl -Dt  test_ref.pl
    
    ...
    (test_ref.pl:9) print
    b2 : foo
    (test_ref.pl:9) leave
    
  4. or download this
    (test_ref.pl:4) nextstate             (test_ref.pl:7) nextstate
    (test_ref.pl:7) pushmark              (test_ref.pl:9) pushmark
    ...
    (test_ref.pl:7) concat                (test_ref.pl:9) concat
    (test_ref.pl:7) print                 (test_ref.pl:9) print
    b : foo                               b2 : foo
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-05-22 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?