Harry Putnam <> wrote:
: Here is an example of problems before even getting to spaces.
: Doesn't this mean that some kind of preprocessing must take
: place?
:
: #!C:\Perl\bin -w
Shame! Always use strictures (except when mumble, mumble,
mumble).
use strict;
: ## This is the format that might be handed to perl:
: ## Here it is inside the script but will really be sent in by
: 100s of ## ARGV. A windows program will output a large list.
: Perl will read ## read the filename on each line and take an
: action
:
: $myfile = "C:\download\my little dir\my other little dir\myfile";
You have three choices.
Escape the '\'.
my $file = "C:\\download\\my little dir\\my other little dir\\myfile';
Use single quotes.
my $file = 'C:\download\my little dir\my other little dir\myfile';
Use Perl's path separator ('/').
my $file = 'C:/download/my little dir/my other little dir/myfile';
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>