Thread: Tech Perl question
View Single Post
Old 12-28-2016, 04:13 AM  
MasonSquelch
Registered User
 
MasonSquelch's Avatar
 
Industry Role:
Join Date: Jun 2014
Location: Germany
Posts: 51
It's just a syntax error in line 2, you can't match this way. $ is used for matching the end of a line. If you want to match the "$" sign you may use \$ . In all other cases $ is used for variables. Trying to match $* is no correct syntax. I guess you are trying to substitute several whitespaces (blanks) with a single one; try this:
$pageHTML =~ s/\s+$/ /g;
instead.
__________________
Mental Sinema - Wanktrance Outfitter
MasonSquelch is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote