Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

perl-beginner · Perl Beginners Mailing List

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 3765
  • Category: Perl
  • Founded: Aug 2, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 25680 - 25710 of 27459   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
25680 Ramesh Polepalli
ramesh_ps1 Send Email
Sep 4, 2007
1:18 pm
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 ...
25681 Ryan J Nauman
pwn_escobar Send Email
Sep 5, 2007
1:13 pm
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...
25682 Paul Archer
geek65535 Send Email
Sep 5, 2007
1:21 pm
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=...
25683 greenberg.d@...
dgreenbean83 Send Email
Sep 5, 2007
1:42 pm
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...
25684 Louis-Philippe
l0u1sph1l1ppe@... Send Email
Sep 5, 2007
2:07 pm
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 { ...
25685 Paul Archer
geek65535 Send Email
Sep 5, 2007
2:13 pm
Which gets us to the oneliner: perl -e ' $word="alphabetize";; print join "", (sort split ( //, $word)), "\n"' ... ...
25686 Ryan J Nauman
pwn_escobar Send Email
Sep 5, 2007
2:33 pm
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...
25687 Paul Archer
geek65535 Send Email
Sep 5, 2007
3:31 pm
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...
25688 Ryan J Nauman
pwn_escobar Send Email
Sep 5, 2007
4:18 pm
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...
25689 merlyn@...
merlynstoneh... Send Email
Sep 5, 2007
4:37 pm
... 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...
25690 Ryan J Nauman
pwn_escobar Send Email
Sep 5, 2007
4:59 pm
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...
25691 kapil v
kapil.vikram... Send Email
Sep 6, 2007
4:57 pm
Hi, #!/usr/bin/perl -w my $path = shift; my $machine = shift; my (undef,$country,$property) = split /\//,$path; my $xmlData = qx!./pindown.php $machine!; my...
25692 Ryan J Nauman
pwn_escobar Send Email
Sep 7, 2007
10:22 am
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...
25693 Ryan J Nauman
pwn_escobar Send Email
Sep 7, 2007
11:22 am
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...
25694 bike2ride
gl_bike2ride Send Email
Sep 7, 2007
11:50 am
... 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. ...
25695 sarveshjangid Send Email Sep 7, 2007
3:01 pm
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...
25696 a_z0_9_blah Send Email Sep 7, 2007
7:04 pm
... Because $values[0] is an array reference. Try: print "\n$keys[0] => $values[0][0]"; If you want a better explanation, see: ...
25697 Jenda Krynicky
jendaperl Send Email
Sep 8, 2007
8:16 pm
- 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 ...
25698 Dukelow, Don
dondukelow Send Email
Sep 10, 2007
6:44 pm
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...
25699 Dukelow, Don
dondukelow Send Email
Sep 10, 2007
7:00 pm
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...
25701 Yogesh Sawant
yoga_sawant Send Email
Sep 12, 2007
8:07 am
... Use the CGI::Session module http://search.cpan.org/~markstos/CGI-Session-4.20/lib/CGI/Session.pm Cheers Yogesh...
25702 Ramesh Polepalli
ramesh_ps1 Send Email
Sep 12, 2007
9:52 am
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...
25703 zen_e_boy Send Email Sep 14, 2007
8:57 am
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....
25704 Lou Hernsen
luinrandir Send Email
Sep 14, 2007
11:56 am
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"...
25705 Ramesh Polepalli
ramesh_ps1 Send Email
Sep 14, 2007
12:20 pm
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...
25706 Gilles Beauregard
balour_2000 Send Email
Sep 14, 2007
2:18 pm
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) ...
25707 zen_e_boy Send Email Sep 14, 2007
3:11 pm
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...
25708 merlyn@...
merlynstoneh... Send Email
Sep 14, 2007
4:02 pm
... 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...
25709 zen_e_boy Send Email Sep 14, 2007
4:41 pm
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....
25710 Lou Hernsen
luinrandir Send Email
Sep 14, 2007
5:03 pm
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...
Messages 25680 - 25710 of 27459   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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