Peter Sergeant > Test-BDD-Cucumber-0.14 > Test::BDD::Cucumber::Util

Download:
Test-BDD-Cucumber-0.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.14   Source   Latest Release: Test-BDD-Cucumber-0.18

NAME ^

Test::BDD::Cucumber::Util - Some functions used throughout the code

VERSION ^

version 0.14

DESCRIPTION ^

Some functions used throughout the code

FUNCTIONS ^

bs_quote

bs_unquote

bs_quote() "makes safe" strings with backslashed characters in it, so other operations can be done on them. bs_unquote goes the other way.

 $string = "foo \<bar\> <baz>";
 $string = bs_quote( $string );
 $string =~ s/<([^>]+)>/"$1"/g;
 $string = bs_unquote( $string );
 $string eq 'foo <bar> "baz"';

AUTHOR ^

Peter Sergeant pete@clueball.com

LICENSE ^

Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl

syntax highlighting: