corfuitl has asked for the wisdom of the Perl Monks concerning the following question:


I have two sentences that share the same symbols (i.e. /*-) and would like to fix the whitespaces of the second sentence according the whitespaces of the first. For instance:

This is a perl script/program.

C'est un perl script / programme.

The second senctence should be:

c'est un perl script/programme.

Please note that the sentence can contain lots of symbols. In that case, ideally the first should align with the first, the second with the second and so on.

Can you please help me?

Thanks in advance.