remove WebGUI::Utility::makeArrayCommaSafe
This commit is contained in:
parent
631c4fe38c
commit
41201e5c4f
2 changed files with 1 additions and 28 deletions
|
|
@ -23,7 +23,7 @@ use Net::CIDR::Lite;
|
|||
|
||||
our @ISA = qw(Exporter);
|
||||
our @EXPORT = qw(&makeTabSafe &makeArrayTabSafe &randomizeHash &randomizeArray &isInSubnet
|
||||
&sortHashDescending &sortHash &isIn &makeCommaSafe &makeArrayCommaSafe &randint &round &scalarEquals
|
||||
&sortHashDescending &sortHash &isIn &makeCommaSafe &randint &round &scalarEquals
|
||||
);
|
||||
|
||||
|
||||
|
|
@ -40,7 +40,6 @@ This package provides miscellaneous but useful utilities to the WebGUI programme
|
|||
use WebGUI::Utility;
|
||||
$boolean = isIn($value, @array);
|
||||
$boolean = isInSubnet($ip, \@subnets);
|
||||
makeArrayCommaSafe(\@array);
|
||||
makeArrayTabSafe(\@array);
|
||||
$string = makeCommaSafe($string);
|
||||
$string = makeTabSafe($string);
|
||||
|
|
@ -123,23 +122,6 @@ sub isInSubnet {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 makeArrayCommaSafe ( array )
|
||||
|
||||
Searches through an array looking for commas and replaces them with semi-colons. Also replaces carriage returns with spaces. This is useful for exporting comma separated data.
|
||||
|
||||
=head3 array
|
||||
|
||||
A reference to the array to look through.
|
||||
|
||||
=cut
|
||||
|
||||
sub makeArrayCommaSafe {
|
||||
my $array = $_[0];
|
||||
$_ = makeCommaSafe($_) for @$array;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 makeArrayTabSafe ( array )
|
||||
|
||||
Searches through an array looking for tabs and replaces them with four spaces. Also replaces carriage returns with a space. This is useful for exporting tab separated data.
|
||||
|
|
|
|||
|
|
@ -25,15 +25,6 @@ my $session = WebGUI::Test->session;
|
|||
# isIn
|
||||
ok(WebGUI::Utility::isIn("webgui", qw(cars trucks webgui trains)), 'isIn()');
|
||||
|
||||
# makeArrayCommaSafe
|
||||
my @commaFilledArray = ("this,that", "foo,bar", "x-y");
|
||||
WebGUI::Utility::makeArrayCommaSafe(\@commaFilledArray);
|
||||
my $noCommaFound = 1;
|
||||
foreach my $row (@commaFilledArray) {
|
||||
$noCommaFound = 0 if ($row =~ m/,/);
|
||||
}
|
||||
ok($noCommaFound, 'makeArrayCommaSafe()');
|
||||
|
||||
# makeCommaSafe
|
||||
unlike(WebGUI::Utility::makeCommaSafe("this,that,foo,,bar"), qr/,/, 'makeCommaSafe()');
|
||||
is(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue