Help for this page

Select Code to Download


  1. or download this
    my @a = ();
    if ( $foo =~ /^(\d+)\s+(\w+)\s*$/ ) {
        @a = ($1, $2);
    }
    
  2. or download this
    my @a = split (/\s+/, $foo);