Perl, shell, python Interview Questions and Answers and quiz
sub printFile($) { my $fileHandle = $_[0]; while (<$fileHandle>) { my $line = $_; chomp($line); print "$line\n"; } } open(MYINPUTFILE, "<filename.in"); my $fileGlob = \*MYINPUTFILE; printFile($fileGlob); close(MYINPUTFILE);
Post a Comment
No comments:
Post a Comment