Hi Anonymous Monk,
you write
Yes I can, but I'm not interested...
That'a pity. I couldn't see where
File::Random (I'm aware of the module name) does some path mangling without being careful to '/' or '\' so it produces the above error while using
File::Find (I'm aware of the module name).
The OP gave the error message
OUTPUT:Can't stat E:: No such file or directory
at C:/Perl/site/lib/File/Random.pm line 121
looking at line
File::Random line 121 shows that this is a call to
find from
File::Find (IAOTMN) at least in version 0.17 of File::Random.
To clarify and sum it up for the interested readers:
- I made a litte test script with File::Random which worked pretty well under Windows even addressing a drive letter, e.g. Z:\
- Looking at File::Random line 121 (version 0.17) showed that there is a call to File::Find::find. As I've seen that File::Random also uses $File::Find::name I made a little test script to see how File::Find behaves under Windows which I don't know.
- As I said above and showed with a little test script I was wondering to see the output of the path names produced by File::Find having '/' in it. But anyway both test scripts work even if addressing a path with a drive letter.
- I concluded without deeper analysis that the way how File::Random was called produces the error or shows the reason for the bug. Therefor I asked the OP for more information.
Hopefully someone else shares his Monks's wisdom and shows us the seemingly obvious bug in File::Random.
McA
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.