Help for this page

Select Code to Download


  1. or download this
    while (<>) {
        2 == (my($x, $y) = split " ") or die "wrong number of fields";
        ...
    }
    
  2. or download this
    wrong number of fields at -e line 1, <> line 1.
    
  3. or download this
    $ perl -e 'warn 0+(@x = split " ", "foo bar\n");'
    2 at -e line 1.
    $ perl -e 'warn 0+(($x, $y) = split " ", "foo bar\n");'
    3 at -e line 1.
    $