Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: assignment and incrementation examples

Perl: assignment and incrementation examples
{filelink=14821}

foreach $val(1..9)
{
  $x+=$val;
  printf("$x
");
  $x*=$val;
  printf("$x
");
  $x-=$val;
  printf("$x
");
}

No comments yet.

Leave a Comment