Johan Lindström > Devel-PerlySense-0.0206 > Devel::PerlySense::Util

Download:
Devel-PerlySense-0.0206.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Module Version: 0.0206   Source   Latest Release: Devel-PerlySense-0.0211

NAME ^

Devel::PerlySense::Util - Utility routines

ROUTINES ^

aNamedArg($raParam, @aArg)

Return list of argument valies in $rhArg for the param names in $raParam.

Die on missing arguments.

slurp($file)

Read the contents of $file and return it, or undef if the file couldn't be opened.

spew($file, $text)

Crete a new $file a and print $text to it.

Return 1 on success, else 0.

filePathNormalize($file)

Return the normalized path of $file, i.e. with "dir/dir2/../dir3" becoming "dir/dir3".

The path doesn't have to exist.

textRenderTemplate($template, $rhParam)

Replace the keys in $rhParam with the values in $rhParam, for everything in $template that looks like

  ${KEY_NAME}

Return the rendered template.

AUTHOR ^

Johan Lindström, <johanl[ÄT]DarSerMan.com>

BUGS ^

Please report any bugs or feature requests to bug-devel-perlysense@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Devel-PerlySense. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2005 Johan Lindström, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: