Hi Monks,
My Script is working fine when i put a '.' for the currect directory. But when i give a directory name which has space between it, it does not run it and did not show the files inside the directory.
I am pasting piece of my code
$glob_path = "$LogDir/${Prefix}*";
@log_paths = glob $glob_path or die "No files found in '$glob_path'";
printf "log files = \n";
print @log_paths;
printf "\n";
I am running the program as-
C:\Perl Script>perl summaryreport_latest_working_latest.pl --LogDir="C
+:\\Perl Script\\Sample Programs" --Prefix=arcotwebfort --Diagnostics=
+01096878 > results.txt
i got this as output
LOG DIR = C:\\Perl Script\\Sample Programs
log files =
C:\PerlScript\Sample
the actual folder name from where i need to take the file is--
<quote>
C:\Perl Script\Sample Programs
</quote>
inside this directory we have so many files with prefix arcotwebfort.
Kindly suggest something to come out of this problem.
Thanks
NT
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.