Help for this page

Select Code to Download


  1. or download this
    @{ $aref } = split(/\D+/,"1,2xxx4:17");
    
  2. or download this
    $ perl -w -Mstrict -MData::Dumper -e 'my $x; @{$x} = split /\s/, "the 
    +one true"; print Dumper($x)'
    $VAR1 = [
    ...
              'one',
              'true'
            ];
    
  3. or download this
    $ perl -w -Mstrict -MData::Dumper -e 'my $x = {}; @{$x} = split /\s/, 
    +"the one true"; print Dumper($x)'
    Not an ARRAY reference at -e line 1.