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
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
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
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
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
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
>
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