--- Jim McIntosh <[EMAIL PROTECTED]> wrote: > I'm having a problem with vss2cvs.pl the problem is > that when the > script tries to concatenate $currdir with $dirline > it seems to copy one over > the other rather than next to each other. > i.e > $currfile should be cvsrepository/hi.txt > however it ends up being hi.txtository > > Heres that part of the code: > > $currfile = "$currdir$dirline"; > open(FILETYPE,"ss Filetype \"$currfile\" > $ssuserpass |"); > $type = lc(<FILETYPE>); > close(FILETYPE); > > Does anyone know how to fix this. Please help as I'm > only a student in 2nd > year at University and have never really used perl > or cvs.
It looks like the initial (ie on the right-hand-side of the assignment) value of $currdir has a '\r' in it. My guess is that you're on a Windows machine. Is this correct? Are you using Cygwin? If so, are you using Cygwin's perl and are you using a binary-mounted directory? If all you want to do is get this script working, you can do a chop($currdir) before the assignment. I would think, though, that you'll run into other similar problems with the script and even line-ending problems later on with CVS if you are, in fact, running on a text-mounted directory. Noel __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs