lantfred has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way of telling which version of MSWIN32 is being used for a perl script?
The reason I ask is that I provide a default editor as part of my GUI (it can be changed via the option menu) and I have found that notepad is under a different direcory on Vista to W2K or XP. I can check to see if the file is in a number of places and return a message box if it is not where I think it should be....but was wondering if there was a quicker solution
I have had to do different things depending on whether the OS is linux or windows...I expect that...but not between variations of windows. I thought using $^0 would be enough but apparently not
I am using Perl 5.8 (because it comes with Tk)...just for info
p.s. As an habitual vi user, I keep hitting the escape button when I finish editing and lose everything :-(
p.p.s. Question is too general to provide example code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Which MS Windows?
by BrowserUk (Patriarch) on Sep 25, 2010 at 23:48 UTC | |
by syphilis (Archbishop) on Sep 26, 2010 at 00:01 UTC | |
|
Re: Which MS Windows?
by GrandFather (Saint) on Sep 25, 2010 at 23:49 UTC | |
by lantfred (Initiate) on Sep 26, 2010 at 00:02 UTC | |
by BrowserUk (Patriarch) on Sep 26, 2010 at 00:13 UTC | |
by lantfred (Initiate) on Sep 26, 2010 at 00:45 UTC | |
by Anonymous Monk on Sep 26, 2010 at 00:52 UTC |