Hi Chuck,
You're right.
It's probably best to do as you suggest as this will handle all prefixed
backslashes,
regardless of the number entered (knowing Perl, someone could try
'\\\\computername' as an argument)
_____________________________________________
Bruno Bellenger
-----Original Message-----
From: Chuck Lawhorn [SMTP:[EMAIL PROTECTED]]
Sent: mercredi 14 mars 2001 17:16
To: Bellenger, Bruno (Paris);
'[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: Finding Logged in users
If you don't want to use the substr command, you could simply remove
all leading backslashes as follows:
$computer =~ s|^\\*||;
Just my $.02,
--Chuck
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin