Re: Perl array question

2015-05-06 Thread Marius Gavrilescu
anirban.adhik...@gmail.com (Anirban Adhikary) writes: > Hi List > I have the following array --- > ('1900-0','1900-1','NULL','NULL','1900-2','1900-4','1902-5','1902-6','1902-7','1902-8'); > There are two part for each element separated by a dash. > first one known as earfcn and second one is pcid

Fwd: Fw: Perl array question

2015-05-06 Thread Shlomi Fish
-- Forwarded message -- From: Shlomi Fish Date: Wed, May 6, 2015 at 11:31 AM Subject: Fw: Perl array question To: shlo...@gmail.com Begin forwarded message: Date: Wed, 6 May 2015 11:04:30 +0300 From: Shlomi Fish To: beginners Subject: Re: Perl array question Hi Anirban

Re: Perl array question

2015-05-06 Thread Shawn H Corey
On Wed, 6 May 2015 12:49:53 +0530 Anirban Adhikary wrote: > Hi List > I have the following array --- > ('1900-0','1900-1','NULL','NULL','1900-2','1900-4','1902-5','1902-6','1902-7','1902-8'); > There are two part for each element separated by a dash. > first one known as earfcn and second one is

Re: Perl array question

2015-05-06 Thread Vincent Lequertier
Thank you for the review, I'm learning and didn't know about this way of using hashes :-) --- Vincent Lequertier s...@riseup.net Le 2015-05-06 11:09, Shlomi Fish a écrit : Hi Vincent, On Wed, 06 May 2015 10:07:41 +0200 Vincent Lequertier wrote: It's a bit ugly, but here is one way to do it

Re: Perl array question

2015-05-06 Thread Shlomi Fish
Hi Vincent, On Wed, 06 May 2015 10:07:41 +0200 Vincent Lequertier wrote: > It's a bit ugly, but here is one way to do it : > Your code encourages many bad practices. Some notes are: > #!/usr/bin/perl no "use strict;"/"use warnings;": http://perl-begin.org/tutorials/bad-elements/#no-strict-a

Fwd: Fw: Perl array question

2015-05-06 Thread Shlomi Fish
-- Forwarded message -- From: Shlomi Fish Date: Wed, May 6, 2015 at 11:31 AM Subject: Fw: Perl array question To: shlo...@gmail.com Begin forwarded message: Date: Wed, 6 May 2015 11:04:30 +0300 From: Shlomi Fish To: beginners Subject: Re: Perl array question Hi Anirban

Re: Perl array question

2015-05-06 Thread Vincent Lequertier
It's a bit ugly, but here is one way to do it : #!/usr/bin/perl my @array = ('1900-0', '1900-1', 'NULL', 'NULL', '1900-2', '1900-4', '1902-5', '1902-6', '1902-7', '1902-8'); my $num1900 = 'EARFCN=1900, PCID='; my $num1902 = 'EARFCN=1902, PCID='; for (@array) { # print $_ . "\n"; $num190

Perl array question

2015-05-06 Thread Anirban Adhikary
Hi List I have the following array --- ('1900-0','1900-1','NULL','NULL','1900-2','1900-4','1902-5','1902-6','1902-7','1902-8'); There are two part for each element separated by a dash. first one known as earfcn and second one is pcid . The requirement is For the same “earfcn”, concatenate the “pci

Re: Simple perl array question

2008-04-20 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Well simple if you are not learning Perl. You guessed it, I am a newbie. My question is if I have an array like this, actually it is my whole program. my @testarray=( [5, [1,3,18,21]], [16, [1,2,3]], [21, [1]]); print [EMAIL PROTECTED]; print [EMAIL PROTECTED]; print [E

Re: Simple perl array question

2008-04-20 Thread Richard Lee
[EMAIL PROTECTED] wrote: Well simple if you are not learning Perl. You guessed it, I am a newbie. My question is if I have an array like this, actually it is my whole program. my @testarray=( [5, [1,3,18,21]], [16, [1,2,3]], [21, [1]]); print [EMAIL PROTECTED]; print [EMAIL PROTECTED]; print [E

Simple perl array question

2008-04-20 Thread dfairman16
Well simple if you are not learning Perl. You guessed it, I am a newbie. My question is if I have an array like this, actually it is my whole program. my @testarray=( [5, [1,3,18,21]], [16, [1,2,3]], [21, [1]]); print [EMAIL PROTECTED]; print [EMAIL PROTECTED]; print [EMAIL PROTECTED]; What I h

AW: Perl Array Question

2002-08-01 Thread Theuerkorn Johannes
That looks Ok, going to try it with the explicit code... Thanks for Advice! Johannes -Ursprüngliche Nachricht- Von: Connie Chan [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 13:48 An: Theuerkorn Johannes Betreff: Re: Perl Array Question That's luck that you w

Re: Perl Array Question

2002-07-31 Thread Robin Norwood
First, something more specific than 'this isn't working at all', will help in diagnosing the problem...but here are some comments which may help: Theuerkorn Johannes <[EMAIL PROTECTED]> writes: > Hi there, i have (a probably simple) Question on Arrays: > > I want to get some Data out of my SQL

Perl Array Question

2002-07-31 Thread Theuerkorn Johannes
Hi there, i have (a probably simple) Question on Arrays: I want to get some Data out of my SQL Databas. I try using the same Query not only once and put the collected data in diffrent Arrays. for (my $i=0;$i<= $count_SNR_LOG_data;$i++){ print "$i\n"; my $sth_RACT_LOG = $dbh->pr