Re: FTP files from one remote server to another

2012-04-20 Thread Matthew K
How secure is this transfer? Is this server to server within the network, or across the Internet? If it remains local, Net::FTP is probably the route you want to go. Just do an $ftp->ls() and do a $ftp->get() on files that match a regex pattern.  If it is not, then you might want to either PGP

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Matthew K
Mark, - Original Message - > From: Mark Haney > To: Perl Beginners  > Cc:  > Sent: Wednesday, April 25, 2012 11:51 AM > Subject: PERL CGI, HTML and PHP >  > I've got, what I hope is a fairly simple problem that someone can point me  > to the best (or best practices anyway) way to handle i

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Matthew K
 Mark, It seems like you have a hammer, and you really want this to be a nail. It just isn't. It's more like a paper clip. Perl and PHP are both server side scripting languages, which means they run on the server. If you use them, you should pick one because they serve the same purpose. You d

Re: Scraping non-html webpage in Perl

2012-05-09 Thread Matthew K
#!/usr/bin/perl use LWP::Simple; my $url = 'your website' my $content = get("$url"); print $content;   -- Matt > > From: Formatting Solutions >To: beginners@perl.org >Sent: Wednesday, May 9, 2012 8:11 AM >Subject: Scraping non-html webpage in Perl > >Hi, > >I wo

Re: string match question

2013-08-20 Thread Matthew K
There are a few ways to do it. It's hard without knowing the data. You could do: $text =~ /Critical Alarm Present([^\.]+)./ ? print "$1\n" : print 0; ;  # if they all end with a period $text =~ /Critical Alarm Present(.*)Recent Device Events./s ? print "$1\n" : print 0;  # if Recent Device Event

Re: string match question

2013-08-21 Thread Matthew K
Can you use LWP::Simple? use LWP::Simple; my $content = get("http://www.google.com/";);   -- Matthew Kunzman Software Engineer  Boise, ID USA Email: matt_...@rocketmail.com  Website: http://www.mattkunzman.com LinkedIn: http://www.linkedin.com/pub/matthew-kunzman/b/5ba/94a -