in reply to how to ignore ' in an array
# removing items from array: my @values = ( "stuff", "has'some'quotes", "foo" ); @values = grep( $_ !~ /'/, @values ); # removing single quotes from a string: my $string = "has'some'quotes\nand a second'line'of stuff"; $string =~ s/'//sg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to ignore ' in an array
by inman (Curate) on Aug 03, 2005 at 16:07 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |