c has asked for the wisdom of the Perl Monks concerning the following question:
I am seeing two very different results between:
my ($rcs) = (q$Revision: 1.41 $ =~ /(\d+(?:\.\d+)+)/);
and
my $rcs = (q$Revision: 1.41 $ =~ /(\d+(?:\.\d+)+)/);
can someone explain the difference? I am not seeing the significance of the ( ) although it obviously has some very important differentiating power.
humbly -c
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: difference between ($scalar) and $scalar
by tadman (Prior) on Jul 21, 2001 at 11:03 UTC | |
by John M. Dlugosz (Monsignor) on Jul 22, 2001 at 01:08 UTC | |
Re (tilly) 1: difference between ($scalar) and $scalar
by tilly (Archbishop) on Jul 21, 2001 at 10:58 UTC | |
Re: difference between ($scalar) and $scalar
by tachyon (Chancellor) on Jul 21, 2001 at 13:19 UTC | |
Re: difference between ($scalar) and $scalar
by japhy (Canon) on Jul 21, 2001 at 15:17 UTC | |
Re: difference between ($scalar) and $scalar
by elbie (Curate) on Jul 21, 2001 at 15:48 UTC | |
Re: difference between ($scalar) and $scalar
by DrZaius (Monk) on Jul 21, 2001 at 20:23 UTC | |
by c (Hermit) on Jul 21, 2001 at 21:40 UTC | |
by DrZaius (Monk) on Jul 21, 2001 at 22:48 UTC | |
Re: difference between ($scalar) and $scalar
by merlyn (Sage) on Jul 22, 2001 at 02:36 UTC |
Back to
Seekers of Perl Wisdom