blackgoat has asked for the wisdom of the Perl Monks concerning the following question:

Hi!

I'm working on a linux machine. A certain command is used to check the latest version of a software currently in use. I have to design an html page that involves a dropdown list to let the user select the version of his choice. I want the list to be updated every time the page is loaded, to include the latest version. How will it be possible using RegExp pattern matching?

Please help!

Thank You

Replies are listed 'Best First'.
Re: Updation through RegExp
by jonnyfolk (Vicar) on Feb 23, 2010 at 04:36 UTC
    You have presented a list of 5 seemingly unconnected sentences. Do you have some code that might clarify what you need/are attempting?
Re: Updation through RegExp
by Anonymous Monk on Feb 23, 2010 at 04:37 UTC
    If the user is selecting from a list, regular expressions aren't needed.
      what I mean to say is that the options visible in the list should be updated automatically... by checking for the latest version. so if the user is using the latest version, they can select it, else they can choose whatever they use.
        • via cron run the command to get the latest version in backticks and check if the value is the last one in your file every hour (assumes users won't have upgraded within an hour of release)
        • read the resultant file into @versions
        • print popup_menu('version' , @versions)
        Code up that and come back with code and a more defined issue if you have one.

        print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
        Yeah, and?