| Bestand :: Util Bestand :: Util is een eenvoudige, veelzijdige, draagbare bestandsbehandelingsmodule. |
Download nu |
Bestand :: Util Rangschikking & Samenvatting
- Vergunning:
- Perl Artistic License
- Naam uitgever:
- Tommy Butler
- Uitgever website:
- http://search.cpan.org/~tommy/Class-OOorNO-0.011/OOorNO.pod
Bestand :: Util Tags
Bestand :: Util Beschrijving
Bestand :: Util is een eenvoudige, veelzijdige, draagbare bestandsbehandelingsmodule. Bestand :: Util is een eenvoudige, veelzijdige, draagbare bestandsbehandelingsmodule.file :: util biedt een uitgebreide toolbox van hulpprogramma's om alle soorten gemeenschappelijke taken op bestand / mappen te automatiseren. Het doel ervan is om dit op de meest draagbare manier mogelijk te doen, zodat gebruikers van deze module zich geen zorgen hoeven te maken of hun programma's zullen werken aan andere osbrengen en machines. Synopsis Gebruik bestand :: util; mijn ($ f) = bestand :: util-> nieuw (); mijn ($ inhoud) = $ f-> load_file ('foo.txt'); $ Inhoud = ~ S / This / That / G; $ f-> write_file ('bestand' => 'bar.txt', 'inhoud' => $ inhoud, 'bitmask' => 0644); $ f-> write_file ('bestand' => 'file.bin', 'inhoud' => $ binary_content, '--binmode'); Mijn (@lines) = $ F-> Load_File ('RandomQuote.txt', '- Lijnen'); mijn ($ regel) = int (rand (scalaire @lines)); Print $ lijnen ; Mijn (@Files) = $ F-> LIST_DIR ('/ VAR / TMP', QW / --Files-Only - Alleen --Recurse /); Mijn (@TextFiles) = $ F-> LIST_DIR ('/ VAR / TMP', '- Pattern = .txt $'); if ($ f-> can_write ('wibble.log')) {mijn ($ handgreep) = $ f-> open_handle ('bestand' => 'wibble.log', 'modus' => 'Appd'); Print $ greep "Hallo World! Het is", scalaire lokaal; Sluit $ Handgreep} My ($ log_line_count) = $ F-> Line_Count ('/ Var / Log / httpd / Access_Log'); Print "Mijn bestand heeft een bitmasker van". $ f-> bitmask ('my.file'); Print "Mijn bestand is een". Word lid ('', ', $ f-> file_type (' my.file ')). " het dossier." waarschuwen 'Dit bestand is binair!' als $ f-> isbin ('my.file'); Print "Mijn bestand is voor het laatst gewijzigd op". Scalaire lokaal ($ f-> last_modificed ('my.file')); # ... en _lots_ meer vereisten: · Perl
Bestand :: Util Gerelateerde software