Re: Delete words in a string

2002-03-11 Thread Jonathan E. Paton
> 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 _

Re: Delete words in a string

2002-03-11 Thread Jon Molin
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 PROT

Delete words in a string

2002-03-11 Thread FORIZS Zsolt
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]