in reply to Re: How can I test for the representation of an integer?
in thread How can I test for the representation of an integer?
Here's why - two regexps which return an array with the same result, but for different reasons
~$ perl -MData::Dumper -e 'print Dumper("1" =~ /1/)' $VAR1 = 1; ~$ perl -MData::Dumper -e 'print Dumper("1" =~ /(1)/)' $VAR1 = '1';
|
|---|