Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
12-08-2016, 01:41 PM | #1 |
Confirmed User
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
|
Perl question
Hi
I'm trying to get a site to work again, but when I try the submit functionality something goes wrong. This is the part of the Perl script going wrong Code:
$pageHTML =~ s/\n/ /g; $pageHTML =~ s/\s+$*/ /g; $pageHTML =~ s/ / /g; $* is no longer supported at /home/{path to script and script}.pl Can something else be used instead of $* ?? Thanks Jolly
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
12-28-2016, 04:13 AM | #2 |
Registered User
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 |
12-30-2016, 04:52 PM | #3 |
Confirmed User
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
|
Hi
Yea, thanks for the update. I got some help from a coder and figured it out, it's just what you said. $ was somehow used differently in earlier versions, when this script was made. I forgot to update that I found the solution, my script have been working for a while now, with what is suggested in above post Thanks Jolly
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
12-31-2016, 06:01 PM | #4 |
Registered User
Industry Role:
Join Date: Jun 2014
Location: Germany
Posts: 51
|
No prob, greetings to your coder!
__________________
Mental Sinema - Wanktrance Outfitter |