Search the web
Sign In
New User? Sign Up
perl-beginner · Perl Beginners Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 26615 - 26650 of 26720   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
26615
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...
edu_kumar
Offline Send Email
Jun 2, 2009
1:00 pm
26616
... Generally, algorithms should avoid comparing integer values to floating point values. Now you know why. HTH, Charles Clarkson -- Mobile Home Investor Free...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Jun 2, 2009
1:52 pm
26617
... edu> while($index <1) { edu> print ("$index < 1 is true! \n"); edu> $index += 0.1; edu> print ("$index\n"); edu> ---------------------------Program ends...
merlyn@...
merlynstoneh...
Offline Send Email
Jun 2, 2009
2:38 pm
26618
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]...
Robert Lee Binkley
leebinkley
Offline Send Email
Jun 3, 2009
5:01 pm
26619
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_kumar
Offline Send Email
Jun 3, 2009
7:08 pm
26620
... 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 ...
merlyn@...
merlynstoneh...
Offline Send Email
Jun 3, 2009
9:34 pm
26621
... Charles> Generally, algorithms should avoid comparing integer values to Charles> floating point values. Now you know why. Even comparing floats to floats...
merlyn@...
merlynstoneh...
Offline Send Email
Jun 3, 2009
11:26 pm
26622
perl -le 'printf("%f %f %f\n", 4294967295, 2147483647*2**32, 2147483647*2**32+4294967295)' 4294967295.000000 9223372032559808512.000000...
Kelly Jones
kelly.terry.jones@...
Send Email
Jun 4, 2009
1:21 am
26623
... Kelly> perl -le 'printf("%f %f %f\n", 4294967295, 2147483647*2**32, Kelly> 2147483647*2**32+4294967295)' Kelly> 4294967295.000000...
merlyn@...
merlynstoneh...
Offline Send Email
Jun 4, 2009
1:40 am
26624
... 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@...
Send Email
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...
merlyn@...
merlynstoneh...
Offline Send Email
Jun 4, 2009
2:00 am
26626
  [Non-text portions of this message have been removed]...
murali iyer
psmiyer
Offline Send Email
Jun 7, 2009
12:00 pm
26627
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...
Jeff Pinyan
evilffej
Offline Send Email
Jun 7, 2009
3:46 pm
26629
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...
Dukelow, Don
dondukelow
Offline Send Email
Jun 9, 2009
1:39 pm
26630
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...
Robert Lee Binkley
leebinkley
Offline Send Email
Jun 9, 2009
10:44 pm
26636
... 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...
Shlomi Fish
shlomif2
Offline Send Email
Jun 13, 2009
10:37 pm
26637
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...
Regina Miller
rmiller571957
Offline Send Email
Jun 17, 2009
3:29 pm
26638
... 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...
Shlomi Fish
shlomif2
Offline Send Email
Jun 17, 2009
3:49 pm
26639
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...
rmiller571957
Offline Send Email
Jun 17, 2009
4:38 pm
26640
... 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 ...
Shlomi Fish
shlomif2
Offline Send Email
Jun 17, 2009
4:54 pm
26641
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...
Chris Seip
ssvfmnx
Offline Send Email
Jun 17, 2009
5:25 pm
26642
# 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...
Robert Lee Binkley
leebinkley
Offline Send Email
Jun 17, 2009
5:52 pm
26643
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
Offline Send Email
Jun 17, 2009
6:50 pm
26644
... 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...
merlyn@...
merlynstoneh...
Offline Send Email
Jun 17, 2009
6:56 pm
26645
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...
rmiller571957
Offline Send Email
Jun 17, 2009
7:02 pm
26646
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 Patterson
cside30
Offline Send Email
Jun 17, 2009
7:11 pm
26647
... 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 ...
merlyn@...
merlynstoneh...
Offline Send Email
Jun 17, 2009
7:15 pm
26648
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...
Scot Robnett
web4success2...
Offline Send Email
Jun 17, 2009
7:22 pm
26649
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...
Urban Gabor
gabauxhu
Offline Send Email
Jun 17, 2009
8:15 pm
26650
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,...
Kevin Patterson
cside30
Offline Send Email
Jun 17, 2009
8:18 pm
Messages 26615 - 26650 of 26720   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help