Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    May 2008
    Posts
    119
    Thanks
    13
    Thanked 0 Times in 0 Posts

    HELP - PERL script not working after server upgrade

    Hi All,

    I have a PERL script which has worked beautifully for years, but following an upgrade to my server host's PERL version 5.10.something, it has stopped and returns a 500 error.

    The line in question is this:

    Code:
    $img_select.="<option>$_</option>\n" if -f "$image_dir/$_" && $_=~m/.\gif|.\jpg/i;
    It returns a drop-list for all files that are .gif or .jpg. The issue is where it says whether it is .gif or .jpg file. Can anyone tell me what I should change it to get it to get it to work?

    Neil

  • #2
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,953
    Thanks
    2
    Thanked 172 Times in 167 Posts
    There is a minor issue with the regex, but that wouldn't cause a 500 error.
    Code:
    m/\.gif|\.jpg$/i
    What makes you think that is the line causing the error?

    Have you checked the web server error log?

  • #3
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Unfortunately, we don't know what this will be ahead of time. The reason is that we schedule a chunk of accounts to be moved at a time. Our mover script then goes through the list and picks an appropriate server that has enough resources available and then moves it. You will be sent an email once the move has completed with the name of your new server in the Subject line. Once you get that email you'll be able to login to your web panel and go to the 'Manage Domains' section to get your new IP. Just click the DNS link for the domain in question and the new DNS information will be listed there.
    Last edited by vinyl-junkie; 10-08-2011 at 06:27 PM. Reason: signatures only allowed through the control panel


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •