in reply to Re: Updation through RegExp
in thread Updation through RegExp

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.

Replies are listed 'Best First'.
Re^3: Updation through RegExp
by Utilitarian (Vicar) on Feb 23, 2010 at 11:02 UTC
    • 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."
Re^3: Updation through RegExp
by Anonymous Monk on Feb 23, 2010 at 05:16 UTC
    Yeah, and?

      And what?? If I prepare the dropdown list for the available versions, on my html page through hard coding the list remains fixed for the user unless I choose to edit it. What is the way to allow the list to be updated automatically by checking online for the latest updates. So that the name of the latest version gets included in the list.

      I hope I managed to clarify this time!
        Almost. Your problem seems to be :
        • obtain list somehow
        • display as dropdown descending
        • ...
        • profit
        For some reason you're convinced you need to solve it through RegExp, and now I can confidently say, maybe you do, but you're leaving out way too many details. How (Not) To Ask A Question
        A reply falls below the community's threshold of quality. You may see it by logging in.