1 / 7

leqcia 7 miTiTebebi $a1 = 7; $refa1 = \$a1; # xisti miTiTeba

leqcia 7 miTiTebebi $a1 = 7; $refa1 = $a1; # xisti miTiTeba print $$refa1; # mniSvnelobis aReba # miTiTebiT 7 print $refa1 # daibeWdeba SCALAR(0x < misamarTi >) $refa1 -> $a1; # miTiTeba isriT $refa1 = “a1”; # simboluri miTiTeba. @ masivi = (1,2,3);

ling
Download Presentation

leqcia 7 miTiTebebi $a1 = 7; $refa1 = \$a1; # xisti miTiTeba

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. leqcia 7 miTiTebebi $a1 = 7; $refa1 = \$a1; # xistimiTiTeba print $$refa1; # mniSvnelobisaReba # miTiTebiT 7 print $refa1 # daibeWdebaSCALAR(0x<misamarTi>) $refa1 -> $a1; # miTiTebaisriT $refa1 = “a1”; # simbolurimiTiTeba

  2. @masivi = (1,2,3); $refmasivi -> @masivi; print $refmasivi -> [0]; # daibeWdeba 1 @masivi = [1,2,3]; # anonimurimasivi $refmasivi = \@masivi; print $refmasivi -> [0]; # daibeWdeba 1 $ref =\\\\“hello”; print $$$$$ref; # daibeWdebahello $subref = sub {print “hello”}; &$subref; # daibeWdebahello

  3. $a1 = 7; $scalref = *a1{SCALAR}; print $$scalref; # dabeWdavs 7 $a1 = 0; $a1sax = “a1”; $$a1sax = 7; print “$a1”; # daibeWdeba7

  4. @misalmeba = (“gamarjoba”, “salami”, “aqamSvidoba”); foreach my $term (@misalmeba) {*{“print” . $term} = sub{print “$term\n”};} printgamarjoba(); # dabeWdavs - gamarjoba printsalami(); # dabeWdavs - salami printaqamSvidoba(); # dabeWdavs – aqamSvidoba foreach my $term (@misalmeba) {${“print” . $term} = sub{print “$term\n”};} &$printgamarjoba();

More Related