Ah - sorry, it is maybe a bug in Komodo, where the filename is truncated - if I run the script command line, no problem, thanks anyway -
>>ignore the following.....
I have a file processing program, that prompts the user to in put a file name then does some data cleaning etc. The problem is, for certain files I have to rename the file first, as it seems that the existing file name breaks the script -
So I have pasted below a small input script, that accepts the input and then just does a print - and even that exhibits the problem. Tried to find a possible explanation on the net, but so far no good - Please help !
# This is an example of the filenames >
# 518C7174-E4E9-4846-805D-2A16DF15D73A.distr
my $cleanme;
## Initialize filename variable
print("Enter filename: ");
chomp($cleanMe =<STDIN>);
print "*$cleanMe";
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.