On Friday, May 31, 2002, at 08:29 , Johnson, Shaunn wrote: [..] > [script] > > foreach my $file ( split (/\n/, `ls -d1 $sambadir/*` ) ) { > print "we see file :$file:\n"; > #$file=(split(//, $sambadir/$file) ); > print "$sambadir/$file"; > system ("/bin/mount -rt iso9660 -o loop $file $mount_pnt"); > #chdir ("$mount_pnt"); > #system ("cp $mount_pnt/* $padir/$region[0]/"); > # don't need to open, just mount and copy > print "\n# - thus end the reign of terror of \$file $file-\n\n"; > } > [/script]
you could always do the regex trick there of say $file =~ s/ /\\ /g; so that for each "space" in a filename you precede it with \ as you noticed in your command line approach.... ciao drieux --- now just because Mac's and M$ agree on allowing ' ' in the file names doesn't mean that it is all just THE FLAMING SULPHUROUS PIT OF GEHENA and was not a good idea..... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]