in reply to Updation through RegExp

If the user is selecting from a list, regular expressions aren't needed.

Replies are listed 'Best First'.
Re^2: Updation through RegExp
by blackgoat (Acolyte) on Feb 23, 2010 at 04:44 UTC
    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?

        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!
          A reply falls below the community's threshold of quality. You may see it by logging in.