* Greg London <email at greglondon.com> [2005/03/07 10:43]:
> 
> Palit, Nilanjan said:
> >             $> perl -e '$x=1; $y=$x+++1; print "x=$x, y=$y\n"'
> 
> Bummer. I just got a ding on your interview.
> How do you parse $x+++1 ?

  $ perl -MO=Deparse,p -e '$x=1; $y=$x+++1; print "x=$x, y=$y\n"'
  $x = 1;
  $y = $x++ + 1;
  print "x=$x, y=$y\n";
  -e syntax OK

:)

(darren)

-- 
1. Everything depends.
2. Nothing is always.
3. Everything is sometimes.

Attachment: pgpp0rvghu7I2.pgp
Description: PGP signature

 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to