Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Perl quiz for beginners

by blue_cowdawg (Monsignor)
on Sep 09, 2011 at 14:56 UTC ( [id://925108]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://925108]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-28 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found