Re: Perl perl recursive list ftp files

2010-11-08 Thread Thomas Brightbill
On 11/4/2010 1:36 AM, sync wrote: 26.my $dir = $_[0]; 27.if ($dir =~ m/^d/){ 28. $ftp->cwd("$dir") or die "Error" 29.. (This location is my problem ) 30. } I suspect that $dir contains a string that starts with the directory attrib

Re: Chomp help...

2010-11-08 Thread Bobby
Awsome, regex worked! My head was stuck on chomp...Thanks Sheppy. From: Sheppy R To: Bobby Cc: beginners@perl.org Sent: Mon, November 8, 2010 2:32:13 PM Subject: Re: Chomp help... You could try doing this with a regex: $html_content =~ s/\n//g; This would loo

Re: Chomp help...

2010-11-08 Thread Sheppy R
You could try doing this with a regex: $html_content =~ s/\n//g; This would look for any new-line ("\n") and replace it with nothing. The g at the end tells it to do this globally, so all instances of \n would be removed. On Mon, Nov 8, 2010 at 4:04 PM, Bobby wrote: > Hi, > > I'm having issue

Re: Chomp help...

2010-11-08 Thread Shawn H Corey
On 10-11-08 04:04 PM, Bobby wrote: I'm having issues with printing out the content of a Database's HTML text field; I wanted to chomp out the carriage returns of the $html_content(see below) so that I could print it out all in one line into a text file ($output). I've tried chomp() but it doesn't

Chomp help...

2010-11-08 Thread Bobby
Hi, I'm having issues with printing out the content of a Database's HTML text field; I wanted to chomp out the carriage returns of the $html_content(see below) so that I could print it out all in one line into a text file ($output). I've tried chomp() but it doesn't seems to work, does anyone

Re: Database table load utility

2010-11-08 Thread Parag Kalra
>>I'm in the thinking stages of creating a table-load utility, which reads a tab-separated CSV file and inserts or updates rows in a >>relational table (probably Oracle). I don't think that will be too hard, having used Perl DBI/DBD modules in the past. Since you are planning to design your own t