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, ...
... try (untested) :- $html = (html code) $html =~ m/<body>(.*)<\/body>/i; $print $1; the $1 contains everything between the two BODY tags... or if that...
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...
... 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@...
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@...
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...
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:...
... 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...
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...
... 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...
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...
... 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...
... 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...
... 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...
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- ... ...
... 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...
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...
... 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...
... 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...
... 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...
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...
... 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...
... 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...
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 -...
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...