Test::BDD::Cucumber::Util(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Util(3pm)

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

version 0.86

Some functions used throughout the code

"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"';

Peter Sergeant "pete@clueball.com"

  Copyright 2019-2023, Erik Huelsmann
  Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl
2023-08-29 perl v5.36.0