Search Results

Search: Posts Made By: cronc
2,047
Posted By cronc
Thanks, pludi, I wrote both an email to Jeffrey...
Thanks, pludi, I wrote both an email to Jeffrey Friedl, and a post on perlmonks.

Here's my answer to Perl gurus from perl.org:

===
Let's present the re

'ab' =~ /((\w+)(?{print defined $2 ?...
2,047
Posted By cronc
A bug in Perl regex
The regex
'ab' =~ /((\w+)(?{print defined $2 ? "\$2=$2\n" : "\$2 not defined\n"})){2}/;
outputs:
$2=ab
$2 not defined
$2=b
Why $2 not defined? I think, the regex here must print $2=a. Is it a...
2,308
Posted By cronc
Yes, 2*-3 is valid for Perl, Delphi and other...
Yes, 2*-3 is valid for Perl, Delphi and other compilers, but in mathematic we must write 2*(-3).

Serge
2,308
Posted By cronc
A Perl regexp to validate arithmetic expressions
Can a Perl regexp validate arithmetic expressions? I say yes. Here is my Perl regexp to validate arifmetic expressions:

#!perl -w
use strict;
use re 'eval';

my @testexpr=(
# Valid...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy