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

Mystery interaction between split and gobbling arrays

by saintmike (Vicar)
on Jun 17, 2015 at 20:39 UTC ( [id://1130882]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $str = "foo:bar:";
    
    ...
    use Data::Dumper;
    print Dumper( [ $a, \@options ] );
    print Dumper( [ $b, $c, $d ] );
    
  2. or download this
    $VAR1 = [
              'foo',
    ...
              'bar',
              ''
            ];
    
  3. or download this
    my( $a, @options ) = ( "foo", "bar", "" );
    my( $b, $c, $d )   = ( "foo", "bar", "" );
    ...
    use Data::Dumper;
    print Dumper( [ $a, \@options ] );
    print Dumper( [ $b, $c, $d ] );
    
  4. or download this
    $VAR1 = [
              'foo',
    ...
              'bar',
              ''
            ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-20 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found