[Perl-unix-users] .htpasswd question

2001-03-01 Thread Allen Jones
I am writing a script that will need to add user to a protected section on our unix server. I'm curious as the formats you can use when adding a user to the .htpasswd file. What characters can be used, and what character cannot be used in the username and in the password? I've looked all over fo

[Perl-unix-users] Re: REGULAR EXPRESSION IN SPLIT FUNCTION - PLEASE HELP ME.

2001-03-01 Thread Shawn
untested, but should work for you: @res=split(/(\D+)(\d+)/, $data); Shawn - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 2:

[Perl-unix-users] RE: REGULAR EXPRESSION IN SPLIT FUNCTION - PLEASE HELP ME.

2001-03-01 Thread Kirkup, Steve
If you do a split the split is based upon the pattern that you are entering, @res=split(/(\D+)(\d+)/, $data); The code you have here will split upon the match of none-numbers and then numbers pattern, which is not what he really wants he wants to really match a string, because there is no dividi

[Perl-unix-users] Re: REGULAR EXPRESSION IN SPLIT FUNCTION - PLEASE HELP ME.

2001-03-01 Thread SCOTT_SISSON
Two things 1) your answer - no need for split - just use regex ($a,$b) = $x =~ /(.{3})(.*)/; 2) Just use the relevant Active state list. Many people are in multiple lists and will not appreciate getting the same question 5 times. In the long run this will hurt your channces of getting an ans

[Perl-unix-users] Re: REGULAR EXPRESSION IN SPLIT FUNCTION - PLEASE HELP ME.

2001-03-01 Thread Sarir Khamsi
> "ponnambalam" == ponnambalam ma <[EMAIL PROTECTED]> writes: > DEAR FRIENDS, > PLEASE HELP ME REGARDING THE REGULAR EXPRESSION IN SPLIT FUNCTION > data is : CDM210909 or FDM210909 ( ie start with 3characters followed > any no of numeric numbers) > probelm is : i need to split this w

[Perl-unix-users] REGULAR EXPRESSION IN SPLIT FUNCTION - PLEASE HELP ME.

2001-03-01 Thread ponnambalam . ma
DEAR FRIENDS, PLEASE HELP ME REGARDING THE REGULAR EXPRESSION IN SPLIT FUNCTION data is : CDM210909 or FDM210909 ( ie start with 3characters followed any no of numeric numbers) probelm is : i need to split this word into CDM and 210909( split into characters & numbers). --- ie, i wi

RE: [Perl-unix-users] REGULAR EXPRESSION IN SPLIT FUNCTION - PLEASE HELP ME.

2001-03-01 Thread Elston, Jeremy
Greetings... If the field length is set as you specified in the examples, then a substr would probably be the fastest method. $my_data = 'CDM210909'; $word = substr($my_data, 0, 3); $number = substr($my_data, 3); If you absolutely must have a regex, it should be somethin

[Perl-unix-users] modifying windows "*.lnk" shortcut files from perl (even under unix) ?

2001-03-01 Thread Urs Rau
I know there is a win32-shortcut module. But I can't "use Win32::Shortcut" from the linux based perl it doesn't want to load under linux perl. Has anybody worked out how it might be used on a linux server to modify windows 9x style shortcut files using the windows version of perl? Urs RAU He

[Perl-unix-users] modifying windows "*.pif" files from perl (even under unix) ?

2001-03-01 Thread Urs Rau
Is there a way (speak a module maybe ?) to modify windows "*.pif" files from within perl? The most convenient way would be if it even worked from the unix perl side as well. I quite often have to modify some *.pif file on linux servers. Urs RAU Head of Information Services OM UK HeadQuarter