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

Re: deference and inreference operators

by ikegami (Patriarch)
on Sep 24, 2004 at 15:57 UTC ( [id://393565]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @a = ('a',   4);  # ok
    @a = ('a' => 4);  # ok
    ...
    
    # Often used for hashes:
    %h = ( key => 'value' );
    
  2. or download this
    @a = qw( a b c );
    $ap = \@a;
    ...
    
    $obj = MyClass->new();
    $obj->method();
    
  3. or download this
    $a = 'test';
    print('$a\n');   # prints: $a\n
    ...
    print('@a\n');   # prints: @a\n
    print("@a\n");   # prints: abc and a newline
    print("\@a\n");  # prints: @a and a newline
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-24 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found