Hello Tirthankar, Tuesday, December 04, 2001, Tirthankar C. Patnaik <[EMAIL PROTECTED]> wrote:
TCP> Hi Maxim, >> no :) you forgot to escape backslash. but there is no difference >> between \ and / slashes in path names in perl for windows. >> TCP> Thanks for this. I use perl on a Linux box, and there I use a /. >> second, unlink <$_path/*> does not works. >> TCP> No. here's a small perl prog I wrote to test this: TCP> #!/usr/bin/perl -w TCP> $_dir = "/tmp/dummy/"; TCP> unlink <$_dir/*> if -r $_dir; TCP> exit; TCP> This prog worked on v5.6.1 built for i386-linux. we're talking of windows versions, btw :) i'm not sure, but may be this behavior depends of perl version. your sample works with cygnus perl 5.6.1 and does not with old windows perl 5.005_02. chdir helps. Best wishes, Maxim mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]