$command =~ s/\-x// should work
On Thu, 28 Oct 2004 15:25:24 -0700 (PDT), Ella Cai <[EMAIL PROTECTED]> wrote:
>
>
>
> I have one line like this:
>
> $command = '$ldapsearch -x -LLL -h "cds2.ford.com" -b "ou=People,
> o=Ford,c=US" "uid=$login" uid fordUNIXid';
>
> If <condition>
> {
> $command = '$ldapsearch -LLL -h "cds2.ford.com" -b "ou=People, o=Ford,c=US"
> "uid=$login" uid fordUNIXid'
> # which -x need to remove
> }
>
> Could anyone let me know by using regular expression, how can I get rid of
> "-x"?
>
> Thanks in advance!
>
> Lixin
>
> ________________________________
> Do you Yahoo!?
> Express yourself with Y! Messenger! Free. Download
> now._______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
>
>
>
> ________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
>
>
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
>
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs