Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by MZSanford (Curate)
on Aug 20, 2001 at 13:35 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found