Help for this page

Select Code to Download


  1. or download this
    $ perl -e  '@c=readdir DIR ; print "@c\n";'
  2. or download this
    $ perl -w -e  '@c=readdir DIR ; print "@c\n";'
    Name "main::DIR" used only once: possible typo at -e line 1.
    readdir() attempted on invalid dirhandle DIR at -e line 1.
    
  3. or download this
    $ perl -e  '@c=readdir DIR or print "$!"; print "@c\n";'
    Bad file descriptor