I am trying to work with pre-determined links within a string, and while my regex works to replace the pre-determined links, I can't add them to an array to work with them.
Here's my code...
$mystring = qq{ Hello,
My name is red, and I am red like a barn.
http://www.example.com
This is text...
I have been searching for hours for a script that will help me to determine what the CPU usage/load is for a website that I developed locally.
I am running XAMPP on Windows XP
Apache/2.2.4 (Win32)
PHP/5.2.1
mod_perl/2.0.3
Perl/v5.8.8
I've tried to install apache:vmonitor, but I cannot get...
I am attempting to reformat the structure of URL's inside a text file, but I am about pulling my hair out.
The urls are like this inside a text file:
http://www.domain.com/http://www.somesite.com/index.phphttp://www. . .
In other words, every URL is butted up next to the other without a...
I am trying to work on a script on my local pc (Windows), but I cannot figure out how to use the "require" command on my computer (that works on my linux hosting account).
Example for my hosting account:
#!/usr/bin/perl
require "somesub.pm";
print "content-type: text/html\n\n";
Example...
I am trying to create a rss feed for stored database information with the below script.
This setup works on one of my websites (the same hosting account/server) but will not work on another for some reason. What it does is offers the results in a download instead of displaying them in the...
Hi,
I am trying to obtain the height and width for an image from another server before it is loaded for the user. This is for an shopping site and images over 300 width mess the page up, so I want to add the height & width tags to anything larger than 300px wide.
I am trying to use...
I have text (articles) with links that I want to transform to html. I am having a hard time figuring out how to change a link like this:
http://example.com
To this:
<a href="http://example.com">http://example.com</a>
I am looking for something like:
$article =~ s/http:. . /<a href=http. ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.