Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Assign a reference to a non reference

by mystik (Sexton)
on Oct 03, 2002 at 11:32 UTC ( [id://202479]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo {
            return ({},[]);
    }
    my (%baz, @bar);
    (\%baz,\@bar) = &foo();
    
  2. or download this
    Can't modify reference constructor in list assignment at foo.pl line 5
    +, near ");"
    Execution of foo.pl aborted due to compilation errors.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-19 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found