in reply to Re: spaces in filenames
in thread spaces in filenames

brackets around the argument you mean like this? and for changing || to or.
(utime $access, access, "/staff/cyp/share/shared/cr/Server Replacement + Schedule.doc" or die print "couldn not set utime for \n");
I'll give it a go but I'm not sure thats what you ment. My perl code is poor as I steal bits of my other also badly written scripts that worked ;) I have a little trouble understanding comments at this stage but that helps with the learning so thanks.

Replies are listed 'Best First'.
Re: Re: Re: spaces in filenames
by theguvnor (Chaplain) on Feb 03, 2003 at 14:40 UTC

    Well, you changed || to or so you're partially there, but I was suggesting brackets around your arguments, not around the whole call to utime(), like so:

    utime($access, $access, "/some/path/Some File.doc") or {...};

    Jon

    Update: I just saw too that you have die print ... and the print is unnecessary.