Perl question
Kekes Stamatis
skekes at internet.gr
Sat May 12 15:55:02 EEST 2001
Geia sou Michali. Tpo dokimasa alla den mou doulepse.
O en logo pinakas pou sou leo gemizei apo ena query pou trexo se mia
postgres. Eno to query mou gemizei ton pinaka kanonika, otan trexo to diko
sou loop mou vgazei otan tou leo print ARRAY(.......) opou stis teleies
yparxei mia dieyuynsh mnimis. Mipos metatrepei se array to kathe stoixeio
tou hash ??
Michalis Kabrianis wrote:
> On Fri, 11 May 2001 20:23:45 +0300
> Michalis Kabrianis <kabrianis at hellug.gr> wrote:
>
> Και βέβαια γίνονται και άλλα χωρίς να χρειάζεται η απλοποίησή σου.
>
> π.χ. αρίθμηση.
> $i=0;
> foreach $aa(@aa) {
> $hash{$i}=$aa;
> }
>
> > > gia na ta aplopoiiso ta pragmata thelo oti timi tha exei to to key na
> > > exei idia
> > > timi me ti value.
> > > diladi :
> > > %y{'a'=>'a'}
> > >
> > > alla me kapoio loop an ayto ginetai.
> >
> > ame.
> >
> > foreach $aa (@aa) {
> > $hash1{$aa}=$aa;
> > }
> >
> >
> > --
> > Michalis Kabrianis
> > kabrianis at hellug.gr
> > http://www.it-jobs.gr
> >
> > --
> > linux-greek-users mailing list -- http://lists.hellug.gr
>
> --
> Michalis Kabrianis
> kabrianis at hellug.gr
> http://www.it-jobs.gr
>
> --
> linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list