http://qs1969.pair.com?node_id=1125168

swampyankee has asked for the wisdom of the Perl Monks concerning the following question:

I'm evidently doing something stupid. I have about 2 dozen working perl programs on my laptop (Fedora 21) which work.

And one that doesn't in ways that I don't quite understand. First, it compiles fine: perl -c tells me the syntax is ok. Second, it runs when I use it as an argument to perl: perl inv (inv is the program's name). When I try to run it by using inv, I get this:

/home/emc/bin/inv: line 1: #!/usr/bin/perl: No such file or directory /home/emc/bin/inv: line 4: use: command not found /home/emc/bin/inv: line 5: use: command not found /home/emc/bin/inv: line 7: my: command not found /home/emc/bin/inv: line 9: my: command not found /home/emc/bin/inv: line 11: my: command not found

I'm stumped. I basically use the same few header lines for all my perl programs: the shebang line, use warnings, and use strict.

I know somebody here has a clue, so hit me with those clue-bats.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc