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
-- 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
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
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
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
-- 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
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
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
[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
[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
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
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
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
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
14 matches
Mail list logo