in reply to Re^2: Perl quiz for beginners
in thread Perl quiz for beginners

Me, being me, would ask questions like

What value is printed using the following code? my $i="abc"; $i++; print $i,"\n";


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^4: Perl quiz for beginners
by Tux (Canon) on Sep 09, 2011 at 15:01 UTC

    And that is a beginner question?

    Be honest, do you have to think harder if the code was

    my $i = "amz"; print ++$i, "\n";

    ?


    Enjoy, Have FUN! H.Merijn
          And that is a beginner question?

      ... I am a sick puppy... :-)


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg