Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Substitution using variables
ReggieRWalker
Is a substituion like this not synthatically correct?
my $string = qq(This is the string I'm starting with);
my $extract = qq(This is the string I'm);
$string=~s/$extract//;
I expected $string to now be "starting with".
Can I not substitute using variables?
TIA
Find more posts tagged with
Comments
ReggieRWalker
Nevermind...I figured it out.