nvlung has asked for the wisdom of the Perl Monks concerning the following question:
Could you please explain what these char "~ s/<c>/" use for? what value $new_msg will get here? Thanks so much!$new_msg =~ s/<c>/$count/g; $new_msg =~ s/<p>/$pcnt/g; $new_msg =~ s/<t>/$total/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: declare a variable in perl
by Athanasius (Archbishop) on Jan 03, 2014 at 08:38 UTC | |
by nvlung (Initiate) on Jan 03, 2014 at 10:14 UTC | |
|
Re: declare a variable in perl
by choroba (Cardinal) on Jan 03, 2014 at 07:58 UTC | |
by nvlung (Initiate) on Jan 03, 2014 at 10:12 UTC | |
|
Re: declare a variable in perl
by LanX (Saint) on Jan 03, 2014 at 07:57 UTC | |
by nvlung (Initiate) on Jan 03, 2014 at 10:10 UTC |