For the question, I don’t want use the system command “paste”. Only want to 
resolve it in perl way.

From: Wang, Zeng-Sheng (TS-GSD-China-ZZ)
Sent: Friday, February 06, 2015 9:08 AM
To: 'shawn wilson'
Cc: beginners@perl.org; Wang, Zeng-Sheng (TS-GSD-China-ZZ)
Subject: RE: use perl format data


Dear Shawn,

Please forgive me for my poor English explanations of my question, there are 
three files, file 1, file 2  and file3.

File 1:

a b c
d e f
j p k

file 2:
x y z
q w e n
a s d

file 3:
1 2 3
3 4 5
8 9 2 1

I read file 1 to $a, file 2 to $b and file 3 to $c, I want to product file 4, 
it contain file 1 , file 2 and  file 3.

File 4:
a b c       x y z     1 2 3
d e f       q w e n   3 4 5
j p k       a s d     8 9 2 1

and put file 4 into $X.

I don’t know whether I explain my question clearly, anyway, thank you very much.

From: shawn wilson [mailto:ag4ve...@gmail.com]
Sent: Thursday, February 05, 2015 7:17 PM
To: Wang, Zeng-Sheng (TS-GSD-China-ZZ)
Cc: beginners@perl.org<mailto:beginners@perl.org>
Subject: Re: use perl format data


On Feb 5, 2015 4:06 AM, "Wang, Zeng-Sheng (TS-GSD-China-ZZ)" 
<zengsheng.w...@hp.com<mailto:zengsheng.w...@hp.com>> wrote:
>

>
> a b c       x y z                       1 2 3
>
> d e f       q w e n                 3 4 5
>
> j p k        a s d                       8 9 2 1
>
>
>
> how to use $a, $b and $c product $x?
>

Along with what was already mentioned about variable names, if you're asking 
about math, look at pdl. If you're asking about output format, you can either 
use printf, look at one of the grid modules, or use perltex (or there's 
probably a docbook or mathml module or two but I haven't looked).

Reply via email to