Re: file to file copy

2002-10-16 Thread Rob
refine it and demonstrate TMTOWTDI once more. Cheers all, and bonne chance R - Original Message - From: "folschette" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 9:24 AM Subject: Re: file to file copy > hi again, > > i've go

Re: file to file copy

2002-10-16 Thread Jean Padilla
t;> I'm not sure about your 'some text'. If you're allowing comment lines > >> starting with a hash then > >> > >> next if /^#/; > >> > >> at the start of the inner loop will do. Now if you want the comments > >> retaining

Re: file to file copy

2002-10-16 Thread folschette
ou're allowing comment lines >> starting with a hash then >> >> next if /^#/; >> >> at the start of the inner loop will do. Now if you want the comments >> retaining, that's another matter :)) >> >> I never like posting just a solut

Re: file to file copy

2002-10-16 Thread folschette
27;s another matter :)) > > I never like posting just a solution on the beginners' group, but I don't > think I'm doing anything obscure here that needs explaining. Tell me if > I'm wrong. > > HTH. > > Cheers, > > Rob > > - Original Messag

Re: file to file copy

2002-10-15 Thread folschette
thanx a lot for your help rob!! the idea with the hash.so simple! christophe folschette Rob wrote: > Christophe > > I think using Tie::File is overkill here. Try this: > > # Merge the two files into a single hash > # > for $file ( 'file2.dat', 'file1.dat' ) > { > open

Re: file to file copy

2002-10-15 Thread Rob
I'm doing anything obscure here that needs explaining. Tell me if I'm wrong. HTH. Cheers, Rob - Original Message - From: "folschette" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 15, 2002 10:56 AM Subject: file to file copy >

file to file copy

2002-10-15 Thread folschette
hello, i have to write a perl script which copies text from one file to another but only if the text is not exisiting yet. For example: in file1: word: moon word2: sky ... the same syntax for every line in file2: #some text word: honey word3: lol word4: mu ... as well the same syntax for every