55 users online (1 members and 54 guests)  

Thread: Perl Help


  Results 1 to 2 of 2

Related

  1. Need help with perl    Forum: CGI Perl Forum
    Replies: 1
  2. Replies: 1
  3. Replies: 1
  4. Replies: 0
  1. #1
    Bern's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    1

    Perl Help

    Hello all,

    I've only got a basic knowledge of perl so I'm hoping someone might be able to help me with a script I need.

    I need a perl script that prompts the user to enter the name of a HTML file. The file will need verifying to check that the file extenstion is .html or .htm (upper case or lower case is fine).

    Upon input of the validated name the file needs to be processed and all lowercase tage, e.g (<html>) need converting to uppercase (<HTML>), no other text should be converted and also tag attribute values need to remain, e.g (<img src="picture.jpg"> should convert to <IMG SRC="picture.jpg"> and not <IMG SRC="PICTURE.JPG">.

    At the end of the processing, the original file needs to be renamed with the .old extension instead of .htm or .html and the processed file should be given the original file name.

    Any help would be appreciated.

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Perl Help

    sounds like you are taking the same course as this person:

    http://www.ahfb2000.com/webmaster_he...ead.php?t=6403



Tags for this Thread