Re: read line in, print each line to separate file

2008-12-24 Thread Charlie Farinella
On Wednesday 24 December 2008, Mr. Shawn H. Corey wrote: > On Wed, 2008-12-24 at 13:16 -0500, Charlie Farinella wrote: > > I need to read in a file of 200 lines and print each out to a separate > > file. > > > > I've been stumbling with this, but I don&

read line in, print each line to separate file

2008-12-24 Thread Charlie Farinella
I need to read in a file of 200 lines and print each out to a separate file. I've been stumbling with this, but I don't know how to name each outfile individually. I was hoping to see 200 files named tx1 - tx200, but instead I get tx1234. for 123 files and then it dies. H

Re: printing array elements

2008-10-09 Thread Charlie Farinella
On Thursday 09 October 2008, Charlie Farinella wrote: > I have a string of text that I want to split on the tabs: > > while () { > my @array = split(/\t/, $_); > > ...manipulate them a little, and print them back out like so: > > print "$array[0],$array[1

printing array elements

2008-10-09 Thread Charlie Farinella
I have a string of text that I want to split on the tabs: while () { my @array = split(/\t/, $_); ...manipulate them a little, and print them back out like so: print "$array[0],$array[1],$array[2]"; etc. } I normally just print them as above, but I'm thinking there must be a better way

Re: Monitor a directory for file creation

2008-01-25 Thread Charlie Farinella
On Thursday 24 January 2008, [EMAIL PROTECTED] wrote: > Charlie Farinella <[EMAIL PROTECTED]> writes: > > > On Wednesday 16 January 2008, Peter Scott wrote: > >> On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: > >> > I need to monitor a direc

Re: Monitor a directory for file creation

2008-01-16 Thread Charlie Farinella
On Wednesday 16 January 2008, Peter Scott wrote: > On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: > > I need to monitor a directory and when a file is created, modify it. > > I've been playing with Linux::Inotify2 and may be able to make that > > work, b

Monitor a directory for file creation

2008-01-15 Thread Charlie Farinella
Hi, I need to monitor a directory and when a file is created, modify it. I've been playing with Linux::Inotify2 and may be able to make that work, but am wondering if this is something that people do routinely. My search at CPAN wasn't particularly fruitful. thanks, -- -

Re: special character string substitution

2007-11-07 Thread Charlie Farinella
On Wednesday 07 November 2007, [EMAIL PROTECTED] wrote: > On Nov 7, 5:43 pm, [EMAIL PROTECTED] (Charlie > Farinella) wrote: > > I'm trying to substitute a string with a Mason variable in a bunch of > > files and not having any luck. For instance I want to change the &

special character string substitution

2007-11-07 Thread Charlie Farinella
Hi, I'm trying to substitute a string with a Mason variable in a bunch of files and not having any luck. For instance I want to change the string 'testtext' to '<% $bURL %>' in a file: perl -w -i -p -e "s/testtext/'<% \$bURL %>'/g" test.html ..substitutes '<% %>' I've tried quotes, double q

Re: How can I respond to Net::FTP timeouts?

2007-04-30 Thread charlie farinella
On Thursday 26 April 2007 21:47, Tom Phoenix wrote: > On 4/26/07, charlie farinella <[EMAIL PROTECTED]> wrote: > > I have a script which uses Net::FTP to upload a backup file each > > night. It sends me an email each night if it succeeds and a different > > email if any

How can I respond to Net::FTP timeouts?

2007-04-26 Thread charlie farinella
I have a script which uses Net::FTP to upload a backup file each night. It sends me an email each night if it succeeds and a different email if any of the methods fail. This all works, but sometimes the ftp connection times out and my script hangs without sending anything. I don't know how

Re: Last day of Month

2002-09-30 Thread Charlie Farinella
On Mon, 2002-09-30 at 17:18, Felix Geerinckx wrote: > on Mon, 30 Sep 2002 21:12:56 GMT, Charlie Farinella wrote: > > > I have an error popping up in an application that runs monthly reports > > and everymonth seems to leave off the last day's entries. > > > >

Last day of Month

2002-09-30 Thread Charlie Farinella
be appreciated. thanks. -- -------- Charlie Farinella, Appropriate Solutions, Inc. [EMAIL PROTECTED] 603-924-6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

functions newbie

2002-07-22 Thread Charlie Farinella
m missing how the function is different from the original, or I am not understanding 'return'. -- Charlie Farinella [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

extracting text

2002-07-03 Thread Charlie Farinella
$_ =~ s/^.*.*$//g; print $_; } } close INFILE; --charlie -- -------- Charlie Farinella, Appropriate Solutions, Inc. [EMAIL PROTECTED] 603-924-6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad