in reply to
declare a variable in perl
=~
is the binding operator. See
perlop
for details. It binds the left hand side to a pattern match or replacement. In this particular example, all
<c>
's will be replaced by the value of $count, etc.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Comment on
Re: declare a variable in perl
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: declare a variable in perl
by
nvlung
(Initiate)
on Jan 03, 2014 at 10:12 UTC
Thanks choroba!
[reply]
In Section
Seekers of Perl Wisdom