Guest User

Untitled

a guest
Feb 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. sub merge_file {
  2. my $template_file = shift;
  3. open(TEMPLATE, $template_file) or print "Error opening template file ($templat
  4. e_file): $!";
  5. # temporarily disable "uninitialized value" warnings
  6. $^W = 0;
  7. while (<TEMPLATE>) {s/<<(.*?)>>/$1/eeg; print;}
  8. $^W = 1;
  9. close(TEMPLATE);
  10. }
Add Comment
Please, Sign In to add comment