Re: grouping regex match return values

2002-09-18 Thread Mohd Salman
Nope, Try cluster patterns , so rewrite $day,$month,$year as $day="(?:[12]?[0-9]|30|31)"; etc >From: "Rum Pel" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: grouping regex match return values >Date: Wed, 18 Sep 2002 00:17:44 -0400 > > >I want to pick dates from a file, I did it the

RE: dealing with Prime Numbers

2002-09-17 Thread Mohd Salman
Try this , for Activestate Perl/W2K perl -e "foreach $i (2..shift||1e2){ print \"$i \" unless (9x$i) =~ /^(99+)\1+$/ } " 100 > >it didn't print anything out on my machine. :-( > >W2K, Activestate Perl 5.6.1 build 633 > >-Original Message- >From: Tanton Gibbs [mailto:[EMAIL PROTECTED]] >

Re: Regular expression multiline matching with /m

2002-09-17 Thread Mohd Salman
Hi, Why you add an empty line after the left / , does fc output start by empty line , if not try if($diff_abs =~ /^Comparing files $abs_file and $prev_abs$ ^\*\*\*\*\* $abs_file$ .. .. .. /omi ...etc > >Hello > >I have a perl script that runs a software build on NT4. The final stage >of this bui

Windows /dev/null device

2002-09-11 Thread Mohd Salman
Hi , How I can send my errors to a null device under windows environment(winxp). I tried $myoutput= `anycommand 2>null ` , but always this command create a file called null . Thanks. _ Join the world’s largest e-mail service with

How to read a char from STDIN without CR

2002-09-06 Thread Mohd Salman
Hi, How I can read a char from STDIN without the need to press CR or EOF. Thanks M.Salman _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command