|
Tech Tips24
Take a number as radius then get the circumference.
Author: GeeGo|Date: 2010/03/01|Back to Tech Tips
#!/usr/bin/perl -w
print $_ = ($ARGV[0] && $ARGV[0] =~ /\d+/) ? 2 * 3.141592654 * $ARGV[0] : 'please give me a number.', "\n"; |