RE: use perl format data

2015-02-05 Thread Wang, Zeng-Sheng (TS-GSD-China-ZZ)
Hi Jim, Thanks for your comments, I will improve my script and add logic for different lines in several files. In perl, I have a lot of knowledge to study. Thanks again. -Original Message- From: Jim Gibson [mailto:jimsgib...@gmail.com] Sent: Friday, February 06, 2015 2:19 PM To:

perl builtin function source code

2015-02-05 Thread prateek goyal
Hi, Please excuse me if I am posting wrong question. I wan to search the source code of PERL builtin functions e.g. reverse function. How can I see that on my machine or on web? I went to github repository of perl project but I ma unable to search that. Please help me. -- *Thanks,Prateek

Re: use perl format data

2015-02-05 Thread Jim Gibson
On Feb 5, 2015, at 6:53 PM, Wang, Zeng-Sheng (TS-GSD-China-ZZ) zengsheng.w...@hp.com wrote: Dear Uri, First thanks for your kindly help and a read-friendly instruction, I will not use $a and $b for variables. According to your explanation, I finish the code as below:

Re: Debug when script WILL NOT RUN

2015-02-05 Thread Harry Putnam
Shawn H Corey shawnhco...@gmail.com writes: On Mon, 02 Feb 2015 11:54:12 -0500 Harry Putnam rea...@newsguy.com wrote: Are we even talking about the same program... Perl::Critic/perlcritic? For me, it just blows up with piles of help information when I use `-c': Use the -c option with

use perl format data

2015-02-05 Thread Wang, Zeng-Sheng (TS-GSD-China-ZZ)
Dear all, I meet a problem and I can't resolve it. Would you like to help me for it? I simple my problem to below text. $a content: a b c d e f j p k $b content x y z q w e n a s d $c content 1 2 3 3 4 5 8 9 2 1 $x content a b c x y z 1 2 3 d e f q w e n

RE: use perl format data

2015-02-05 Thread Wang, Zeng-Sheng (TS-GSD-China-ZZ)
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,

Re: use perl format data

2015-02-05 Thread Uri Guttman
On 02/05/2015 08:07 PM, Wang, Zeng-Sheng (TS-GSD-China-ZZ) wrote: 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

RE: use perl format data

2015-02-05 Thread Wang, Zeng-Sheng (TS-GSD-China-ZZ)
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

Re: use perl format data

2015-02-05 Thread Shlomi Fish
Hi Mr./Ms. Wang, On Thu, 5 Feb 2015 09:03:19 + Wang, Zeng-Sheng (TS-GSD-China-ZZ) zengsheng.w...@hp.com wrote: Dear all, I meet a problem and I can't resolve it. Would you like to help me for it? I simple my problem to below text. $a content: a b c d e f j p k $b content x y z

Re: use perl format data

2015-02-05 Thread shawn wilson
On Feb 5, 2015 4:06 AM, Wang, Zeng-Sheng (TS-GSD-China-ZZ) 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 ka s d 8 9 2 1 how to use $a, $b and $c product $x? Along with what was

RE: use perl format data

2015-02-05 Thread Wang, Zeng-Sheng (TS-GSD-China-ZZ)
Dear Uri, First thanks for your kindly help and a read-friendly instruction, I will not use $a and $b for variables. According to your explanation, I finish the code as below: #!/usr/bin/perl -w 2 use strict; 3 open(FH,'',file1); 4 my @first_file = FH; 5 close (FH); 6 7