file handling

2010-02-10 Thread elavazhagan perl
Hi, I have a program which reads the input file,updates once and outputs in a new file. Ex.The first line L1 will be updated to L2. I need to put this into a loop so that the scripts will be invoked 1000 times and the output contains the appended data(L1 TO L1000). Please can you suggest few meth

Re: file handling

2010-02-12 Thread elavazhagan perl
:* *DESIRED OUTPUT:* Thanks. On 2/12/10, John W. Krahn wrote: > > elavazhagan perl wrote: > >> On 2/11/10, John

Fwd: file handling

2010-02-12 Thread elavazhagan perl
Hi, Please find the correction in my words. The script should read the original content and update and append the data to a new file upto the desired output. Thanks. -- Forwarded message -- From: elavazhagan perl Date: Feb 12, 2010 3:02 PM Subject: Re: file handling To: "J

Re: file handling

2010-02-12 Thread elavazhagan perl
Yes, you are absolutely right.. We need to increment the line by one and field ID by 20. Whatever my be the fied id.. Thanks, On 2/12/10, John W. Krahn wrote: > > elavazhagan perl wrote: > >> Hope,this time I will make you clear. >> >> Our script converts the original

Re: file handling

2010-02-19 Thread elavazhagan perl
LD:$2 \t NEW:", $2 + ($i*20), "\n"; } #Condition to match the line and increament by 1. # if ( s/_L(\d{1,3})_/ '_L' . ( $1 + ($i*1) ) . '_' /e ) { print "OLD:L$1 \t NEW:L", $1 + ($i*1), "\n"; }

arrayref

2008-07-07 Thread elavazhagan perl
Hi, Please have a glance on the following code and suggest me to purify it. My requirement is when the user choose the region,I need to display the countries specific to that regions. I have been trying in both hash and array references.This one is for arrayref. I have already the values of $

Re: arrayref

2008-07-08 Thread elavazhagan perl
U.S.', 'Canada', 'Mexico', ], South => [ 'Argentina', 'Brazil', 'Venezuela', ], ); foreach my $countries ( keys %Regions ) { print "$countries: @{ $Regions{$countries} }\n" } On 7/8/08, Dr.Ruud <[EMAIL

combo box+ Perl+JS

2008-07-10 Thread elavazhagan perl
Hello wisdoms, Please have a glance on my following querry and attached reference files. I need to make three combo box which are related to each other.When the user choose the Continents,the specified countries should be displayed in the pull down menu.For each countries we have facilities in the

combo boxes + Perl

2008-07-14 Thread elavazhagan perl
HI... I have two combo boxes in which the first one is used for choosing the Regions and the second one is for the corresponding countries. I would like to do this with Perl and html without importation any modules and eventhough it is better by Javascript. I am getting the pull down menu value

Re: combo boxes + Perl

2008-07-15 Thread elavazhagan perl
IN => "India", MY => "Malaysia", NZ => "NewZealand", PH => "Philippines", ZA => "South Africa", TW => "Taiwan", VN => "Vietnam"); my $item="$country_code"; while (my($key,$value) =

Shell script + pop up function

2008-07-18 Thread elavazhagan perl
Hi, I need to show a pop up message in a page( http://localhost/cgi-bin/pleaseguideme.cgi) when the cron job fails.It means I think we need to call a javascript popup function in the else part. Please if anyone have the idea how to accomplish this,you are requested to share the info with us..

$hDATA1::YEAR -reg

2008-07-24 Thread elavazhagan perl
Hi Guys... This query may be irreverent to this forumsif it is please pardon me.. In my form there is one option to chose the entire year... ### Choose an Entire Year: (only years with recorded usage will display)* $hDATA1::YEAR* # when the user choose the date the ran

output of the sql querry

2008-08-12 Thread elavazhagan perl
Hi Guys, The following $sql querry is being executed in the toad well and getting output as C. While trying to fetch the value through DBI ,it outputs the value as I. Please suggest me to get the right one..Thanks. #Code starts here my $sql = qq[*SELECT MAX(last_run_status) KEEP (DENSE_RANK LAS

Use of uninitialized value in substr

2007-07-06 Thread elavazhagan perl
Hai While executing the mutate.pl pgrogram,the diagnostic msg obtained as "Use of uninitialized value in substr at mutate.pl line 31, line 1." I almost defined all the variables. Would you kindly provide some remedy to this…… This is the mutate programm... #!/us