in reply to Re^4: Perl Script in Windows Works, but not in Unix
in thread Perl Script in Windows Works, but not in Unix
If you added use strict;and did not get errors, then I think kcott was on the right track when he indicated the invocation was somehow incorrect.
#!/usr/bin/env perl use strict; # name # Script to extract "item 7" from a 10-K report. # This will write the "good" part of the file to stdout, and will writ +e # a "schema string" on a single line to stderr. $dirtoget="/10K-txt/";
This should have immediately produced an error if the Perl interpretter was reading it, because you don't have
    my $dirtoget here.
Also, changing your first line from
#!/usr/bin/perl
to
#!/usr/bin/env perl
Changed the behavior.
Something's up with the invocation.
I know you said you tried the dos2unixutility, which addresses newlines, but could it be a Unicode file and your Linux system isn't happy with that?
I'm reaching here, but there is an answer. We just need to find it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl Script in Windows Works, but not in Unix
by dobster936 (Novice) on Jun 26, 2015 at 19:50 UTC | |
by stevieb (Canon) on Jun 26, 2015 at 20:03 UTC | |
by mr_mischief (Monsignor) on Jun 26, 2015 at 20:07 UTC | |
|
Re^6: Perl Script in Windows Works, but not in Unix
by marinersk (Priest) on Jun 26, 2015 at 19:31 UTC |