NAME
    Lazy::Utils - Utilities for lazy

VERSION
    version 1.02

SYNOPSIS
    Utilities for lazy

  Methods
   trim
    trims given string

        trim($str)

        $str: string will be trimed

        return value: trimed string

   ltrim
    trims left given string

        ltrim($str)

        $str: string will be trimed

        return value: trimed string

   rtrim
    trims right given string

        rtrim($str)

        $str: string will be trimed

        return value: trimed string

   file_get_contents
    get all contents of file, by string type

        file_get_contents($path)

        $path: path of file

        return value: file contents by string type

   shellmeta
    escape metacharacters for double-quoted shell string

        shellmeta($s)

        $s: double-quoted shell string

        return value: escaped string

   _system
    executes a system command like Perl system call

        _system($cmd, @argv)

        $cmd: command

        @argv: command line arguments

        return value: exit code of command. 511 if fatal error occurs

        returned $?: return code of wait call, like Perl system call

        returned $!: system error message, like Perl system call

   bashReadLine
    reads a line using bash

        bashReadLine($prompt)

        $prompt: prompt

        return value: line

   cmdArgs
    resolves command line arguments, eg: -opt1 --opt2 val2 command_string
    parameter1 parameter2 ...

        cmdArgs(@argv)

        @argv: command line arguments

        return value: { -opt1 => 'opt1', --opt2 => 'val2', command =>
        'command_string', parameters => ['parameter1', 'parameter2', ...] }

INSTALLATION
    To install this module type the following

            perl Makefile.PL
            make
            make test
            make install

    from CPAN

            cpan -i Lazy::Utils

DEPENDENCIES
    This module requires these other modules and libraries:

    *   Switch

    *   FindBin

    *   Cwd

    *   File::Basename

REPOSITORY
    GitHub <https://github.com/orkunkaraduman/Lazy-Utils>

    CPAN <https://metacpan.org/release/Lazy-Utils>

AUTHOR
    Orkun Karaduman <orkunkaraduman@gmail.com>

COPYRIGHT AND LICENSE
    Copyright (C) 2016 Orkun Karaduman <orkunkaraduman@gmail.com>

    This program is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
    Free Software Foundation, either version 3 of the License, or (at your
    option) any later version.

    This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
    Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program. If not, see <http://www.gnu.org/licenses/>.

