Perl wrote:
Hi List,

I have this script which actually returns the value of the filename with
extension but If the file name is something like "c:\projects\text 009.txt"
(having a space in filename which is common in windows).
This script only returns "text" instead of returning full name of file.

Hi Perl,

Are you quoting the filename on the command line? Most shells split arguments on whitespace. In your example $ARGV[0] contains "c:\projects\text", and $ARGV[1] contains "009.txt".

Randy.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to