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

Perl: Reading from Standard Input

Perl: Reading from Standard Input
{filelink=15259}

#!/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:

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

No comments yet.

Leave a Comment