Perl/Shell/Python Knowledge Sharing
Perl, shell, python Interview Questions and Answers and quiz
Wednesday, January 5, 2011
Get the name of perl script
Method 1:
use File::Basename;
my $name = basename($0);
print "$name\n";
Method 2:
print $0,"\n";
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment