How do i delete some words in a string, like with SED in Unix.
please give me some ideas.
cu zsolt
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
FORIZS Zsolt wrote:
How do i delete some words in a string, like with SED in Unix.
please give me some ideas.
use a regexp as in sed
my $string = this string sucks;
$string =~ s/sucks/blows/;
look at 'perldoc perlre'
/jon
cu zsolt
--
To unsubscribe, e-mail: [EMAIL PROTECTED
How do I delete some words in a string, like with
SED in Unix.
You you want, think of Perl as sed's big brother :)
perl -p -e 's/WORD//g'
or, in a script:
$string = String that has a WORD I want deleted;
$string =~ s/WORD//g;
Jonathan Paton