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+)+)/);


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