Help for this page

Select Code to Download


  1. or download this
    $  perl -E ' @c = `ls f*.*`; $return_code = `echo $?`; say scalar $ret
    +urn_code;'
    0
    
  2. or download this
    $  perl -E ' @c = `ls foobar.*`; $return_code = `echo $?`; say scalar 
    +$return_code;'
    ls: impossible to find foobar.*: No such file or directory
    512
    
  3. or download this
    $ ls *.* | sort | perl -E '@c = <>; say scalar @c, " files";  $return_
    +code = `echo $?`; say scalar $return_code;'
    294 files
    0
    
  4. or download this
    $ ls  foobar.*  | perl -E ' $return_code = `echo $?`; say scalar $retu
    +rn_code;'
    ls: impossible to find foobar.*: No such file or directory
    0