CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [robhazekamp] What if I Have 10 Furnaces Instead of Only 9? : Edit Log



FishMonger
Veteran / Moderator

Nov 2, 2016, 7:54 AM


Views: 16207
Re: [robhazekamp] What if I Have 10 Furnaces Instead of Only 9?

Why are you using the length() function to check an integer? That doesn't make any sense.

You really should post a short but complete script that demonstrates the problem.

If you're passing 3 args to your script like that, then you probably should be doing something like this:

Code
#!/user/bin/perl 

use strict;
use warnings;

my ($fnc, $num, $report) = @ARGV;

Then apply whatever checks you need to those vars. I can't tell what you're really trying to accomplish so I can't extend the example until you give a better explanation and sample code.

If your actual script isn't to big, then maybe you should post the whole script.


(This post was edited by FishMonger on Nov 2, 2016, 7:57 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Nov 2, 2016, 7:57 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives