Skip to search.
perl-beginner · Perl Beginners Mailing List

Group Information

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

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Messages 10187 - 10216 of 27344   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
10187 Greg Krieser
krieser Offline Send Email
May 1, 2002
12:59 pm
Is there a module out there that can extract the content that is between the opening body statement (<body>) and the closing body statement (</body>)? Thanks, ...
10188 Gordon Stewart
gordonisnz Offline Send Email
May 1, 2002
1:55 pm
... try (untested) :- $html = (html code) $html =~ m/<body>(.*)<\/body>/i; $print $1; the $1 contains everything between the two BODY tags... or if that...
10189 z4zap Offline Send Email May 1, 2002
2:47 pm
Hi guys I'm new o CGI programming and Perl. Can nebuddy plzz tell me from where to start. which books to refer etc....
10190 Jeff 'japhy' Pinyan
evilffej Offline Send Email
May 1, 2002
2:53 pm
... You might want to use HTML::Parser, or HTML::TokeParser. It won't be very difficult. -- Jeff "japhy" Pinyan japhy@......
10191 Greg Krieser
krieser Offline Send Email
May 1, 2002
2:57 pm
Gordon, Thanks for the code. Tried both, but did not get them to work. I'll read more about match and see if I can figure out why it didn't. I'll let you...
10192 Jeff 'japhy' Pinyan
evilffej Offline Send Email
May 1, 2002
3:04 pm
... His regex fails because . doesn't match \n, and I'm SURE your HTML text has newlines in it. If you wanted to be quick about it (and possibly inaccurate)...
10193 Jonathan E. Paton
jonathanpaton@... Send Email
May 1, 2002
3:06 pm
... The recent list archive is a very good idea, we are just about exuasted from talking about how to go about learning Perl: ...
10194 Franki
frankieh@... Send Email
May 1, 2002
4:40 pm
If you have a programming background, get "programming perl", if you don't have a programming background, get "learning perl", and later get programming...
10195 Greg Krieser
krieser Offline Send Email
May 1, 2002
5:57 pm
Thanks for everyone's help. I've got a sample working, but not the way I'd like. Could I get a little more help? Tried this parser sample code I found at:...
10196 daymobrew Offline Send Email May 2, 2002
1:31 pm
... way I'd like. Could I get a little more help? ... http://www.gellyfish.com/htexamples. ... not everything between <body> and </body>. How can I modify...
10197 Chirhart, Brian
DIE2self Offline Send Email
May 2, 2002
1:49 pm
I am trying to evaluate a variable that is sometimes blank. The problem that I am running in to is that when it evaluates the variable as blank, I get an...
10198 daymobrew Offline Send Email May 2, 2002
2:05 pm
... problem ... blank, I ... 345. ... to find ... then ... nothing ... How about: if ( defined $InterfaceIndex ) { ......
10199 Chirhart, Brian
DIE2self Offline Send Email
May 2, 2002
3:03 pm
... Didn't know I could do that...... Thanks! Yahoo! Groups Sponsor ADVERTISEMENT <http://rd.yahoo.com/M=226014.2032696.3508022.1829184/D=egroupweb/S=17050069...
10200 Greg Krieser
krieser Offline Send Email
May 2, 2002
3:14 pm
VERY IMPRESSIVE! Works like a champ! Thanks! This list is showing me the importance of regexps. Thanks for the help. Can't wait to implement this...
10201 markveerman Offline Send Email May 2, 2002
9:32 pm
Hello, How do you return an array or a hash from a subroutine? If I print the data from the array within the sub, everything works fine. I think the problem...
10202 Jeff 'japhy' Pinyan
evilffej Offline Send Email
May 2, 2002
9:37 pm
... You've shown the function, but not what you're doing with it. Here's a brief example: sub get_lengths { my @len; for my $str (@_) { push @len, length...
10203 markveerman Offline Send Email May 2, 2002
10:12 pm
... I'm trying to write a function that that will use the Win32::ODBC module to query a database and return an array containing the fieldnames of the...
10204 Jeff 'japhy' Pinyan
evilffej Offline Send Email
May 2, 2002
10:49 pm
... You're returning the array, but what are you returning it TO? ... I think so. My code stores the return value of the function: @output = function(); Does...
10205 markveerman Offline Send Email May 2, 2002
11:11 pm
I figured it out! Although, I don't really understand the, but here's what it was: Below within the sub I originally had: my @fieldnames = $db- ... ...
10206 Jeff 'japhy' Pinyan
evilffej Offline Send Email
May 2, 2002
11:45 pm
... No! You're not returning anything then! You're just setting a global array. The concept of returning something from a function is that you ACTUALLY send...
10207 Mike Dillinger
mikedpan Offline Send Email
May 2, 2002
11:46 pm
Folks, I'm trying to test and see if a reply I get from and SNMP object is numeric or string. The only way I know to do this is something like this: if( $var...
10208 Jeff 'japhy' Pinyan
evilffej Offline Send Email
May 2, 2002
11:59 pm
... C does it differently because C is not Perl. Try 'perldoc -q integer' and see what the FAQ tells you. You're not too far off. -- Jeff "japhy" Pinyan...
10209 Charles K. Clarkson
charlesclarkson Offline Send Email
May 3, 2002
12:13 am
... So this is what Japhy meant. Shame on you Japhy, I can't believe you'd let Mark do it this way. :) ... my $sql = "SELECT doc_name FROM $table WHERE...
10210 markveerman Offline Send Email May 3, 2002
12:17 am
... global ... you ... your ... you ... helps keep ... Okay, I think I understand what you're saying, however, If I don't return @fieldnames, then I can't do...
10211 markveerman Offline Send Email May 3, 2002
12:41 am
Thanks Charles - Are you telling me that even though it works it's not good code? :-). As if it's not totally obvious - I'm a novice. /mark ... In defense of...
10212 Charles K. Clarkson
charlesclarkson Offline Send Email
May 3, 2002
12:47 am
"Mike Dillinger" <miked@...> queried: [snip] ... use POSIX; my $test = 7000_000_003; print isdigit( $test ) ? "numeric\n" : "string\n"; HTH, Charles...
10213 Jeff 'japhy' Pinyan
evilffej Offline Send Email
May 3, 2002
2:16 am
... Gaaah! No, Mark misunderstood my code, Charles. Mark, the return() function does not tell Perl that variables you used in your function can be used...
10214 Charles K. Clarkson
charlesclarkson Offline Send Email
May 3, 2002
2:34 am
... When I started with perl last year, almost everything I managed to get working was an example of poor coding. A subroutine should be able to be pulled out...
10215 Eric Via
ericvia2002 Offline Send Email
May 3, 2002
3:58 am
I'd welcome the views on this issue from you fine people, especially the more seasoned Perl folks among us. I have a friend at work who *I* turned on to Perl -...
10216 pmccreath Offline Send Email May 3, 2002
9:17 am
Hello All, I would appreciate any advice, I'm trying to split an email body file into seperate header files, using the code below. #!/usr/bin/perl -w use...
Messages 10187 - 10216 of 27344   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