on Fri, 14 Jun 2002 06:43:53 GMT, [EMAIL PROTECTED] (Ronnie Livingston) wrote:
> Hi, I have a textfile with a list of gifs (ex. planet.gif, > star.gif)and I have a perl program which grabs one of the > filenames randomly. What I want to do is use the filename and > copy it to random.gif but I keep getting the error: > > cp: cannot access planet.gif > > I have been using this in my perl program: > > `cp "$line" random.gif`; Did you chomp away the newline from $line, after you read it in from the file? I usually use File::Copy to copy files. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]