Hi all. My hosting company recently moved my website to a different server, which broke the perl script that drives the site. Unfortunately, I wrote the script a good three years ago as part of an arts-based masters degree project (and with crucial help from people on this forum—thanks again!) and I have no idea how to follow the brief advice offered by my hosting company to fix the problem. I was never a programmer to begin with, and despite spending all day trying to Google my way to self-sufficiency on this I just can't get my head around it.
Here's what the hosting company said:
Your perlmods directory uses libs from perl 5.8.4 (which was the older version of perl on your old server), but your new server has perl version 5.8.8. You need to replace those old lib files with new ones for perl version 5.8.8.
Here are my questions:
Where can I download the new lib files? Which files do I need? And can I simply create 5.8.8 folders in my perlmods/lib/perl and perlmods/share/perl directories via FTP and put the files in there?
Here is my script, if that's relevant:
#!/usr/bin/perl -wT use strict; use CGI ':standard'; print "Content-type:text/html\n\n"; use lib '/home/jesskilb/perlmods/share/perl/5.8.4'; use lib '/home/jesskilb/perlmods/lib/perl/5.8.4'; use File::Random qw/:all/; my $dir = '/home/jesskilb/the-spam-oracle.com'; my $file = random_file(-dir => "$dir/infinity"); my @lines = random_line("$dir/infinity/$file", int(rand(3)) + 1); my $randomlines=join(" ",@lines); open(OUTPUT,"$dir/results_template.html") or die "Can't open file\n"; my $line; while ($line=<OUTPUT>) { $line=~s/results go here/$randomlines/; print $line; } close OUTPUT;
Any help would be MUCH appreciated, particularly if you could write it as if for a very simple-minded 5-year-old. Thanks in advance!
In reply to How do I update my perlmod lib files to 5.8.8? by hawthorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |