Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Can't understand function returning undefs

by jettero (Monsignor)
on Sep 24, 2010 at 20:21 UTC ( [id://861878]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if( ()=(0,0) ) {
      print "sometimes you're counting the things in the list and getting 
    +2.\n"
    ...
    if( (0,0) ) {
       print "sometimes you're applying the comma operator and getting und
    +ef (last)\n";
    }
    
  2. or download this
    use Data::Dumper;
    print Dumper({ test1=>scalar( 7,13 ), test2=>scalar( ()=(7,13) ) }), "
    +\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found