Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Declaring final variables
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Dave, post: 4818089"] i.e. use an evaluated substitution: use strict; use warnings; my $string = 'This is $var my path'; my $var = "overwrite"; (my $interpolated_string = $string) =~ s/(\$\w+)/$1/eeg; print $interpolated_string; [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Declaring final variables
Top