Guest User

Untitled

a guest
Dec 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. my $issue = "Folder Name";
  2. my @xmlFiles;
  3.  
  4. # Start Snippet
  5. chdir ("$issue");
  6.  
  7. print "1. Looking for XML filesn";
  8. my $find_xmlFiles = "dir /a:-d/b/s/o:-n *.xml";
  9. @xmlFiles = `$find_xmlFiles`;
  10. print "2. Found XML filesn";
  11.  
  12. chdir ("..");
  13.  
  14. sub find_xml {
  15. my @xmlFiles;
  16. my @issues; # with sub to populate the array
  17. foreach my issue (@issues) {
  18. # snippet above
  19. }
  20.  
  21. # Sorting through @xmlFiles to find ones I want
  22. # Populate a global array for use in another subroutine
  23. # Copy other files associated with desired XML
  24. }
Add Comment
Please, Sign In to add comment