Hi all, I'm a beginner in Perl and I slowly started writing small programs in it. While I was playing with the if and while loops in Perl, I got into a really...
... Generally, algorithms should avoid comparing integer values to floating point values. Now you know why. HTH, Charles Clarkson -- Mobile Home Investor Free...
You are adding after the fact and printing then it goes back to the test. If I move up the print to before the print true, here is the output: [C:/Common]...
Hey Charles, Thanks very much for your response. It truly an eye opener, i guess i'm still thinking of it as Java since I was more of a java programmer till...
... edu> Thanks very much for your response. It truly an eye opener, i guess i'm edu> still thinking of it as Java since I was more of a java programmer till ...
... Charles> Generally, algorithms should avoid comparing integer values to Charles> floating point values. Now you know why. Even comparing floats to floats...
... Not trolling. I'm trying to convert node latitude/longitudes in openstreetmap.org into 63-bit INTs for sqlite3 rowid number. I'm on a 32-bit machine, so %u...
Kelly Jones
kelly.terry.jones@...
Jun 4, 2009 1:53 am
26625
... Kelly> Not trolling. I'm trying to convert node latitude/longitudes in Kelly> openstreetmap.org into 63-bit INTs for sqlite3 rowid number. The problem is...
In case you didn't see (and I assume you didn't): ... -- The Cross Reference - http://thecrossreference.blogspot.com/ Critical Mass (The Science of the...
I've used Perl SSH on a number of occasions in the past but nothing series. Now I need to get series, does anyone know some good web sights I can go to get...
If all you need to do is run a command on a remote host then my @host_files_in_tmp = qx(ssh user@host ls /tmp); #!/usr/bin/perl use strict; use warnings; use...
... A few notes about your code: 1. You're missing "use strict;" and "use warnings;". Please add them. 2. Your first print is missing a "\n". 3. You are...
Hi, My script to add a new user is below, written on solaris 10. Running it using either of these two ways (one with double quotes around the second parameter...
... Hi! First of all, you shouldn't use $ARGV[0] , $ARGV[1], etc. directly. Do: {{{ my ($first_name, $last_name, $address) = @ARGV; }}} Which is a much more...
Thanks very much for the advice on not using $ARGV's directly. I will change my code to match. But I'm not sure how your example of system("echo"...) applies...
... It's not $ARGV - it's @ARGV. @ARGV is the entire array. $ARGV[$index] is an individual element of it. There's also $ARGV in Perl which is a different ...
Hi Regina, The problem is caused by the eval shell statement: eval "exec ctperl -S $0 $*" When the shell runs your shell script, the quotation marks have...
# cat add_smbuser #!/sbin/sh # This script must be invoked each time a new user # is added to the UB-Domain (SAM), so he will find his home and # a backup...
This worked! Thank you so much! But now I'm having trouble passing my embedded-space-parameter on to the useradd routine. Here is my current code. The...
... rmiller571957> But how can I pass it on to the useradd command as one parameter? As Shlomi Fish already showed you before... using a multi-arg system...
Thank you! And Shlomi, I'm sorry I didn't understand your response. I played with it for about 10 minutes, but just didn't see how it fit in with my...
Hello.. I am writing a perl program in windows.. Here is my problem. I have a file containing data such as: Apples Oranges Pears Bananas Plums Apples Oranges ...
... Kevin> I write a program to read this file and create a summary report showing Kevin> How many apples: Kevin> How many oranges Kevin> How many Pears ...
What is the exact format of the file? What have you tried so far? Nobody is going to write the script for you. The group is here to help you figure things out...
Hi, try to have a hash containing the frequencies. IMHO it is not a Perl issue. Get some info on algorithms Gabaux ... Hello.. I am writing a perl program in...
Sorry... Here is what I wrote: #!/usr/bin/perl #use warnings; #use diagnostics; my $count = 0; my $key_count = 0; $Input_File="crapdata1.txt"; open(INP,...