• +91 9723535972
  • info@interviewmaterial.com

Perl Interview Questions and Answers

Question - How do I do fill_in_the_blank for each file in a directory?

Answer - Here's code that just prints a listing of every file in the current directory: #!/usr/bin/perl -w opendir(DIR, "."); @files = readdir(DIR); closedir(DIR); foreach $file (@files) { print "$file\n"; }

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners