File-Remote - File::Remote : Unable to read a file containing space in file name

Posted on Mon Feb 25 12:58:13 2008 by rupesh760
File::Remote : Unable to read a file containing space in file name
Hi, I am using File::Remote module to read the remote files in my program. It fails when the file name has space in between. FOR EXAMPLE: #!/usr/bin/perl use File::Remote qw(:replace); $rshhost="myhostname"; $file = "/tmp/test 1.txt"; open(FH, "$rshhost:$file") || die "Cant open File : $!"; while (<FH<) { print $_; } close(FH); Other files are ok but it fails when file name has space. Can any one help me out there? Thanks in advance. Rupesh
Write a response