Re: Use single perl instance multiple times

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

mseele schreef:

Quoted text here. Click to load it

Not without side effects, but maybe good enough:


  for $file (@files) {
      eval {
          require $file;
      or do {
          my $err = $@;
          printf STDERR "%s\n", $err;

Next progress would be forking suicidals, I suppose.

Alternative approaches:
  for f in *.pm ; do perl -Mstrict -wc $f ; done 2>&1 |grep -vP "\.pm
syntax OK$" |less
  for f in *.pm ; do perl -Mstrict -wc $f 2>&1 |grep -vP "\.pm syntax
OK$" ; done |less

Affijn, Ruud

"Gewoon is een tijger."

Site Timeline