What results do you get on vista from this version?It makes no difference on Vista (apart from occurrences of
Use of uninitialized value in undef operator ... :-)
However, on Windows 2000 (and probably XP, too) it has the desired effect. As long as the op does an
undef($^E); before running the system command, I don't envisage any problem with your proposed solution on XP and Windows 2000.
Here's a copy'n'paste of what I get on Vista:
C:\_32\pscrpt>perl try.pl
Use of uninitialized value in undef operator at try.pl line 4.
Successful command returning 1
![] ?[256 : 1] E[The specified image file did not contain a resource s
+ection]
Use of uninitialized value in undef operator at try.pl line 10.
Nonexistent command, attempted direct but fallback to via cmd
'c:/doesNotExists.exe' is not recognized as an internal or external co
+mmand,
operable program or batch file.
![No such file or directory] ?[256 : 1] E[There are no more files]
Use of uninitialized value in undef operator at try.pl line 16.
Nonexistent via cmd because 'shell chars'; sending stderr >null
![] ?[256 : 1] E[There are no more files]
I tried a couple of different builds of perl-5.8.8 on Vista (being sure to ammend the path to perl appropriately each time) and the output doesn't change.
Anyway,
pjf did specify "XP".
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.