Devel::PerlySense::Util - Utility routines


NAME

Devel::PerlySense::Util - Utility routines

Back to Top


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.

Back to Top


AUTHOR

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

Back to Top


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. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

Back to Top


ACKNOWLEDGEMENTS

Back to Top


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.

Back to Top

 Devel::PerlySense::Util - Utility routines