Linux SoftwareProgrammingLibrariesIO::Util 1.5

IO::Util 1.5



Developer:   Domizio Demichelis
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   13K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


IO::Util is a selection of general-utility IO function.

SYNOPSIS

use IO::Util qw(capture slurp Tid Lid Uid load_mml);
capture()
# captures the selected filehandle
$output_ref = capture { any_printing_code() } ;
# now $$output_ref eq 'something'

# captures FILEHANDLE
$output_ref = capture { any_special_printing_code() } *FILEHEANDLER ;

# append the output to $captured
capture { any_printing_code() } *FILEHEANDLER , $captured
# now $captured eq 'something'

# use another class to tie the handler
use IO::Scalar ;
$IO::Util::TIE_HANDLE_CLASS = 'IO::Scalar'
slurp()
$_ = '/path/to/file' ;
$content_ref = slurp ;
$content_ref = slurp '/path/to/file' ;
$content_ref = slurp *FILEHANDLE ;

# append the file content to $content
$_ = '/path/to/file' ;
slurp $content;
slurp '/path/to/file', $content ;
slurp *FILEHANDLE, $content ;
Tid(), Lid(), Uid()
$temporarily_unique_id = Tid ; # 'Q9MU1N_NVRM'
$locally_unique_id = Lid ; # '2MS_Q9MU1N_P5F6'
$universally_unique_id = Uid ; # 'MGJFSBTK_2MS_Q9MU1N_PWES'
A MML file (Minimal Markup Language)
< opt >
< !-- a multi line
comment-- >
< parA >
< optA >01< /optA >
< optA >02< /optA >
< optA >03< /optA >
< /parA >
< parB >
< optA >04< /optA >
< optA >05< /optA >
< optA >06< /optA >
< optB >
< key >any key< /key >
< /optB >
< /parB >
< /opt >
load_mml()
$struct = load_mml 'path/to/mml_file' ;
$struct = load_mml $mml_string ;
$struct = load_mml *MMLFILE ;
$struct = load_mml ..., %options ;

# $struct = {
# 'parA' => {
# 'optA' => [
# '01',
# '02',
# '03'
# ]
# },
# 'parB' => {
# 'optA' => [
# '04',
# '05',
# '06'
# ],
# 'optB' => {
# 'key' => 'any key'
# }
# }
# }

Requirements:
  • Time::HiRes
  • Sys::Hostname
  • Perl
    tags load mml  struct load  opta opta  file content  content ref  output ref  slurp path  ref slurp  printing code  filehandle output  mml file  key any  any key  

    Download IO::Util 1.5


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/D/DO/DOMIZIO/IO-Util-1.5.tar.gz


    Authors software

    HTML::TableTiler 1.21 (by Domizio Demichelis)
    HTML::TableTiler can easily generates complex graphic styled HTML tables.

    HTML::TableTiler uses a minimum HTML table as a tile to

    IO::Util 1.5 (by Domizio Demichelis)

    Template::Magic 1.38 (by Domizio Demichelis)

    Bundle::Application::Magic 1.21 (by Domizio Demichelis)
    Bundle::Application::Magic is a a bundle to install CGI::Application::Magic plus all related prerequisites.

    SYNOPSIS

    perl -

    Bundle::CGI::Builder::Complete 1.36 (by Domizio Demichelis)
    Bundle::CGI::Builder::Complete is a bundle to install the complete CGI::Builder framework.

    SYNOPSIS

    perl -MCPAN -e 'install


    Similar software

    IO::Util 1.5 (by Domizio Demichelis)

    HTML::WikiConverter 0.61 (by David J. Iberri)
    HTML::WikiConverter is a Perl module that can convert HTML to wiki markup.

    SYNOPSIS

    use HTML::WikiConverter;
    my $wc = new

    Inline::Struct 0.06 (by Neil Watkiss)
    Inline::Struct is a Perl module that manipulate C structures directly from Perl.

    SYNOPSIS

    use Inline C => Config => Structs =

    Mac::Path::Util 0.23 (by Brian D. Foy)
    Mac::Path::Util is a Perl module that can convert between darwin and Mac paths.

    SYNOPSIS

    use Mac::Path::Util;

    FileHandle::Unget 0.1621 (by David Coppit)
    FileHandle::Unget is a Perl module which is a drop-in replacement for FileHandle

    C::DynaLib::Struct 0.55 (by John Tobey)
    C::DynaLib::Struct is a tool for handling the C `struct' data type.

    SYNOPSIS

    use C::DynaLib::Struct;

    Define C::DynaLib::

    Eqe 1.3.0 (by Ronan Le Hy)

    pssh 1.2.1 (by Brent N. Chun)
    pssh project provides parallel versions of the openssh tools

    genproto 0.4.1 (by Freek)
    genproto generates prototypes from C/C++ code

    cid-compiler 0.1 (by Markus W Weissmann)
    cid-compiler is a language tool to easily create C code with object oriented features


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags