BSD :: Stat.

Stat () com extensões BSD 4.4
Baixe Agora

BSD :: Stat. Classificação e resumo

Propaganda

  • Rating:
  • Licença:
  • Perl Artistic License
  • Preço:
  • FREE
  • Nome do editor:
  • Dan Kogai
  • Site do editor:
  • http://search.cpan.org/~oyama/Crypt-Camellia-2.01/lib/Crypt/Camellia.pm

BSD :: Stat. Tag


BSD :: Stat. Descrição

Stat () com extensões BSD 4.4 BSD: STAT é um módulo Perl que exportações padrão substituem as funções Core Stat () e LSTAT (), substituindo-as com versões que contêm extensões BSD 4.4, como sinalizadores de arquivo. Este módulo também adiciona função CHFLAGS.YNOPSIS Use BSD :: Stat; # Apenas como Core :: Stat ($ DEV, $ ino, $ mode, $ nlink, $ uid, $ gid, $ rdev, $ tamanho, $ atime, $ mtime, $ ctime, $ blksize, $ blocks, $ atimensec, $ mtimensec, $ ctimensec, $ flags, $ gen) = stat ($ filename); # BSD :: Stat agora aceita filehandles, muito aberto f, "foo"; meu @stat = stat (* f); # omitir um argumento e vai usar $ _; meu $ _ = "foo"; Minha estatística = stat; # stat ($ file) então -x _ funciona como núcleo :: stat (); Stat ("foo") e -x _ e imprimir "foo é executável" # mas -x $ file, em seguida, Stat (_) não vai !!! # apenas como arquivo :: stat $ st = stat ($ file) ou morrer "não $ arquivo: $!"; if (($ st-> modo e 0111) $ st-> nlink> 1)) {print "$ file é executável com links de lots \ n"; } Use BSD :: Stat QW (: campos); Stat ($ file) ou morrer "não $ arquivo: $!"; if (($ st_mode e 0111) $ st_nlink> 1)) {print "$ file é executável com links de lots \ n"; } # chflags chflags (uf_immutable, @files) Requisitos: · Perl.


BSD :: Stat. Software Relacionado