ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I try to add a line "/perl/bin/perl.exe a.pl" in a shell script named convert.sh,but it return "/perl/bin/perl.exe:cannot execute binary file"when I execute it.
i assume you are working on a *nix system. Probably the path to perl is sth like /usr/bin/perl or /usr/local/bin/perl. If the file has an "exe" extension it is probably for doze and maybe needs to be exchanged.
If you ar working on windows...good luck
thank you for your help.
I have sucessfully solved the problem.as I am a new user of linux.I have mistake the windows file formt for the linux system's. so I finally figure it out by using "which perl" to find the executable compiler.
also, I reckon, it is often better to use warnings; rather than -w
as the -w will propogate into called packages; giving warnings
out of your control, whereas the use will not.
Well, I've always used -w and don't remember seeing an issue with that... maybe I'm just lucky
I also always use
use strict;
even in small ones because they often become larger and (more importantly) it's a good habit.
Also, I use a temp file eg test.pl to check some ides or fiddly syntax before inclusion in the real prog.
If I leave off strict/-w in that, I get bitten later in the real prog, so I don't do that ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.