Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
difference between ($scalar) and $scalarby c (Hermit) |
on Jul 21, 2001 at 10:53 UTC ( [id://98636]=perlquestion: print w/replies, xml ) | Need Help?? |
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
Back to
Seekers of Perl Wisdom
|
|