i wrote, obviously with my eyes closed:
> s/-x/''/;
which of course should be s/-x//; - sorry!
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Could anyone let me know by using regular expression, how can I get rid of
"-x"?
If that's all you really want, and you know that's the only place it can occur,
then its no problem to use just
s/-x/''/;
(substitute '-x' by '')
ed c
___
Perl-Win32-U
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
{
$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
question of regular expression
Dear all,
I have a line like this:
notepad test.txt # This is a test.
I want to put seprate the line into two by "#", like
var1 = "notepad test.txt"
var2 = "This is a test." (I do not want to include # sign)
How can I do?
, October 15, 2001 3:42 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: a question of regular expression
I am sorry, I do not make it clear.
The code is like:
opendir (DIR, $directory) || die "can not open it:$!";
@sub_folders = readdir($directory);
can I do something on the seco
nt: Monday, October 15, 2001 1:42 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: a question of regular expression
I am sorry, I do not make it clear.
The code is like:
opendir (DIR, $directory) || die "can not open it:$!";
@sub_folders = readdir($directory);
can I do something on the
ge-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 15, 2001 4:36 PM
To: [EMAIL PROTECTED]
Subject: a question of regular expression
Dear all,
I want to open a directory and get all sub folders except "." and "..&qu
Dear all,
I want to open a directory and get all sub folders except "." and ".." under
directory, how can I do it?
Thanks
Lixin
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users