Re: Patten matching

2007-01-10 Thread Deepak Barua
ed by <-- HERE in m/* <-- HERE ?\014*?/ at -e line 111." This is what i actually want to do find "/*" pattern with anything before it and after it .. Regards Deepak On 1/10/07, Deepak Barua <[EMAIL PROTECTED]> wrote: Hi Tom, I 'll try it .. ? Thanks.. Re

Re: Patten matching

2007-01-10 Thread Deepak Barua
Hi Tom, I 'll try it .. ? Thanks.. Regards Deepak On 1/10/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 1/10/07, Deepak Barua <[EMAIL PROTECTED]> wrote: > Hi , i want to match a pattern like "/*" and "*/" with some or > other whitespace

Patten matching

2007-01-10 Thread Deepak Barua
Hi , i want to match a pattern like "/*" and "*/" with some or other whitespace before or after them what can be the match expression for the same..? Assume the pattern is stored in a variable ... $pattern=qr!/\*!; Regards Deepak -- Code Code Code Away -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: Reversing Digits

2007-01-08 Thread Deepak Barua
Basically you can use the divide modulus % and then eliminate the digit using normal divide... but then the cooler way is to convert to BCD and then extract nibble by nibble... Regards Deepak On 1/9/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: Hi all, I was trying to reverse the digits. F

Re: [query] Using a scalar variable with match operator

2007-01-03 Thread Deepak Barua
Hi John, I don't understand the script seems very cryptic, could you explain my $start_pattern = qr!/\*|//!; Regards Deepak On 1/3/07, John W. Krahn <[EMAIL PROTECTED]> wrote: Deepak Barua wrote: > Hi, Hello, >I want to use a scalar variable with OR "|

[query] Using a scalar variable with match operator

2007-01-03 Thread Deepak Barua
Hi, I want to use a scalar variable with OR "|" operator embedded in the variable in a statement like $start_pattern = "\/\* \| \/\/"; if(m/$start_pattern/ || $continue == 1) { $chosen_pattern = $&; Please inform me on how it is supposed to work..? Regards Deepak -- Code Code C