other ways to parse emails from html?

2013-01-31 Thread Jeswin
Hi again, I tried to use the treebuilder modules to get emails from a webpage html but I don't know enough. It just gave me more headaches. My current method get the emails is to go to the site, put the source code in MS Word, and run a regex to get all the emails in that html page. I think I can

trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Jeswin
Hi, I'm trying to parse out the emails addresses from a webpage and I'm using the HTML::TreeBuilder::XPath module. I don't really understand XML and it's been a while since I worked with perl*. So far I mashed up a code by looking through past examples online. The HTML portion for the email is like

working with large integers

2011-12-29 Thread Jeswin
Hi, I'm doing one of the Project Euler exercises which asks the sum of 100 fifty-digit numbers[1]. My code is 2 parts: I open the text file containing the digits and put into an array: BEGIN_CODE= open (F, "Fifty_hundred.txt") || die "Could not open

Re: multi-column array

2011-12-01 Thread Jeswin
On Thu, Dec 1, 2011 at 5:32 AM, Rob Dixon wrote: > > If I am understanding you correctly then there is no need for anything > so convoluted as your transpose subroutine. The program below does what > you need. > > HTH, > > Rob > > > use strict; > use warnings; > > my @unknown_abs = ( 0.1, 0.2, 0.3

multi-column array

2011-11-30 Thread Jeswin
I've been trying to figure out how to print 2 arrays into 2 columns. I came across this code and it works but gives me a problem in the output. *BEGIN CODE* sub transpose { map { my $i = $_; [ map $_->[ $i ], @_ ] } 0 .. $#{ $

Help pulling data from website

2011-10-26 Thread Jeswin
Hi all, I'm still a beginner but I have a project I want to work on. I want to pull price data from a website and would like your advice on getting started. This is my idea and a basic implementation of the process: 1) The input is coverted to the web link, i.e., if I type in "force of will" the