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

Perl: Reading from Standard Input

Perl: Reading from Standard Input

#!/usr/bin/perl -w
  print "Tapez un nombre: ";
  chomp(my $n = );              #read from keyboard
  my $root = sqrt $n;  # Calculating the square root
  print "square root is $root.n";

Users who found this page were searching for:

  • list .replace python
  • python if does not exist
  • java graphics arc2d
  • perl print out all words in file
  • reading standard error perl
  • write a program that displays the calender java jpanel gridlayout
  • input statement for perl programming
  • read email using perl
  • perl file username

No comments yet.

Leave a Comment