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 25680 - 25710 of 26720   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
25680
Hi, I am designing a small demo application using perl:cgi on webserver lighthttpd. I am new to CGI programming and do not have any idea of using sessions and ...
Ramesh Polepalli
ramesh_ps1
Offline Send Email
Sep 4, 2007
1:18 pm
25681
I wrote the following code to alphabetize a word: sub alphabetize { my $word = uc(shift); my $wordlen = length($word); my @letters; for (my $i = 0; $i < length...
Ryan J Nauman
pwn_escobar
Offline Send Email
Sep 5, 2007
1:13 pm
25682
If what you are looking for is a list of the letters in a word, in alphabetical order, then you want something like: perl -e ' $word="alphabetize"; @array=...
Paul Archer
geek65535
Offline Send Email
Sep 5, 2007
1:21 pm
25683
As for returning it as a string instead of an array of characters, look at the "join" function. With it, you can explicitly return a string. -David Sent via...
greenberg.d@...
dgreenbean83
Offline Send Email
Sep 5, 2007
1:42 pm
25684
to get your array in a string, try the join command: my $letters = join "", @letters; ... I wrote the following code to alphabetize a word: sub alphabetize { ...
Louis-Philippe
l0u1sph1l1ppe@...
Send Email
Sep 5, 2007
2:07 pm
25685
Which gets us to the oneliner: perl -e ' $word="alphabetize"; print join "", (sort split ( //, $word)), "\n"' ... ...
Paul Archer
geek65535
Offline Send Email
Sep 5, 2007
2:13 pm
25686
What does the pattern " //" break down to? I'm somewhat familiar with regular expressions and don't know what a forward slash does. I would have guessed the...
Ryan J Nauman
pwn_escobar
Offline Send Email
Sep 5, 2007
2:33 pm
25687
The slashes delimit a regular expression. In this case, the regexp is empty. Using an empty regular expression for the split means that each character will...
Paul Archer
geek65535
Offline Send Email
Sep 5, 2007
3:31 pm
25688
Ah, thanks. Neat little trick. Well I finished my first complete working version of the code and is a bit sluggish. Though this is expected since the input...
Ryan J Nauman
pwn_escobar
Offline Send Email
Sep 5, 2007
4:18 pm
25689
... Ryan> Ah, thanks. Neat little trick. Well I finished my first complete working Ryan> version of the code and is a bit sluggish. Though this is expected...
merlyn@...
merlynstoneh...
Offline Send Email
Sep 5, 2007
4:37 pm
25690
Ah, excellent. However, allow my noobness to kick in. Alright so you want me to create a hash that contains the entire list of words (values) associated with...
Ryan J Nauman
pwn_escobar
Offline Send Email
Sep 5, 2007
4:59 pm
25691
Hi, #!/usr/bin/perl -w my $path = shift; my $machine = shift; my (undef,$country,$property) = split /\//,$path; my $xmlData = qx!./pindown.php $machine!; my...
kapil v
kapil.vikram...
Offline Send Email
Sep 6, 2007
4:57 pm
25692
Can someone please help me understand what is being explained here? I thought I understood it after looking at it a second time but the part that confuses me...
Ryan J Nauman
pwn_escobar
Offline Send Email
Sep 7, 2007
10:22 am
25693
I have the following code for pushing a new value onto my hash: my %buckets; push(@{ $buckets{"KEYNAME"} }, "new value"); my @keys = keys %buckets; my @values...
Ryan J Nauman
pwn_escobar
Offline Send Email
Sep 7, 2007
11:22 am
25694
... With use strict; use warnings; you get the hint that you are not using Perl properly. Scalar value @keys[0] better written as $keys[0] at t.pl line 10. ...
bike2ride
gl_bike2ride
Offline Send Email
Sep 7, 2007
11:50 am
25695
Dear all, I have prepared one small application in cgi perl. I want to use login, logout etc through mysql. although i am able to authenticate the user but...
sarveshjangid
Offline Send Email
Sep 7, 2007
3:01 pm
25696
... Because $values[0] is an array reference. Try: print "\n$keys[0] => $values[0][0]"; If you want a better explanation, see: ...
a_z0_9_blah
Offline Send Email
Sep 7, 2007
7:04 pm
25697
- OK then. - Because then it's all backwards. - Why is that? - Please don't top-post! ... Declare the %bucket hash. It's not initialized to anything, but will ...
Jenda Krynicky
jendaperl
Offline Send Email
Sep 8, 2007
8:16 pm
25698
I'm dong a for loop and using the number count to assign as part of the hash key. The test print inside the sub program work fine, but outside the program it...
Dukelow, Don
dondukelow
Offline Send Email
Sep 10, 2007
6:44 pm
25699
Disregard I found it, I had a hidden character in my assignment line. I've found that vi does that when you have fat fingers. ... Don Dukelow HP UNIX OVO...
Dukelow, Don
dondukelow
Offline Send Email
Sep 10, 2007
7:00 pm
25701
... Use the CGI::Session module http://search.cpan.org/~markstos/CGI-Session-4.20/lib/CGI/Session.pm Cheers Yogesh...
Yogesh Sawant
yoga_sawant
Offline Send Email
Sep 12, 2007
8:07 am
25702
Hi team, Sarvesh, I am also working on same lines and this is the code I am using to store user id in the session. #!/usr/bin/perl -w use CGI; use...
Ramesh Polepalli
ramesh_ps1
Offline Send Email
Sep 12, 2007
9:52 am
25703
Hi, how can I capture the IP address of a user filling in a HTML form. The backend procesing is using Perl. I dont know what modules are installed by the ISP....
zen_e_boy
Offline Send Email
Sep 14, 2007
8:57 am
25704
OO OO I know! sorta It's an ENV command something like $IP = ENV{Remote_User} google ENV or "Enviroment HTML" Lou the complete newbe! ... From: "zen_e_boy"...
Lou Hernsen
luinrandir
Offline Send Email
Sep 14, 2007
11:56 am
25705
You can check the modules installed. Check the link http://www.mimedefang.org/kwiki/index.cgi?PerlModulesINFO or use this script on web page 1. #!/usr/bin/perl...
Ramesh Polepalli
ramesh_ps1
Offline Send Email
Sep 14, 2007
12:20 pm
25706
Allo! ... For the visitor IP: $ENV{'REMOTE_ADDR'} If you need to have a listing of all environenet variable do the following: foreach $key (sort keys %ENV) ...
Gilles Beauregard
balour_2000
Offline Send Email
Sep 14, 2007
2:18 pm
25707
Thanks for your replies, I'll give them a go over the weekend. I also found a way of doing it in Javascript that I could quite easily pass back via a hidden...
zen_e_boy
Offline Send Email
Sep 14, 2007
3:11 pm
25708
... zen> Thanks for your replies, I'll give them a go over the weekend. zen> I also found a way of doing it in Javascript that I could quite easily zen> pass...
merlyn@...
merlynstoneh...
Offline Send Email
Sep 14, 2007
4:02 pm
25709
All good and valid points, most of which I never thought of because Im not that strong on IP networking. Thanks for taking the time to reply....
zen_e_boy
Offline Send Email
Sep 14, 2007
4:41 pm
25710
Why do I care... I am writing an online game and I at looking for ways to prevent cheating... 1-Cookies 2-Same (or similar IP address?) 3-Small program on the...
Lou Hernsen
luinrandir
Offline Send Email
Sep 14, 2007
5:03 pm
Messages 25680 - 25710 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