Re: Perl FTP question [beginner]

2001-04-18 Thread Sean O'Leary
At 03:08 PM 4/18/2001, you wrote: >I wrote this code to email me attachments of any files found at a certain >ftp site. It works but... since I'm new at Perl I know there's got to be a >better way. In particular the handling the file transfer by parsing out the >output from DIR seems hinky. Le

Re: Directory Grepping WIN32

2001-04-18 Thread Sean O'Leary
At 02:44 PM 4/18/2001, you wrote: >I have their full name and path. The only thing I know is they end with >"09.html". Is perl the right tool to use to find all my 09 files and place >their fully qualified names in a file? > >If I can get all my 09 filenames in a file, reading them in and parsin

Perl FTP question [beginner]

2001-04-18 Thread Stout, Joel R
I wrote this code to email me attachments of any files found at a certain ftp site. It works but... since I'm new at Perl I know there's got to be a better way. In particular the handling the file transfer by parsing out the output from DIR seems hinky. Let me know if you can help. #!c:\perl\p

Directory Grepping WIN32

2001-04-18 Thread Allen_Gregg
I am running perl5 on Windows 98. I have a directory (C:\Data2000, 20+ Gbytes) full of numerous subdirectories full of (several hundred thousand) files. I want to parse out some data from certain files and I can easily if I have their full name and path. The only thing I know is they end wit

Re: not sure if this is a beginners issue -- tie with DB_File

2001-04-18 Thread Peter Scott
At 02:16 PM 4/18/01 -0400, you wrote: >one more question -- yes, the db files WERE created on another machine, >but the "file" command shows them as being Berkeley DB format files, >correctly But I think I will go with trying to re-create... thanks for >the pointer. Then that's my prime su

Re: not sure if this is a beginners issue -- tie with DB_File

2001-04-18 Thread Peter Scott
At 12:43 PM 4/18/01 -0400, Kat wrote: >*sigh* > >I have changed the script to include -w, but not strict. Keep going :-) Trust me, once you get used to putting use strict in your programs you will wonder how you ever got along without it. > HOWEVER, if I change the error routine to a "die "m

Re: not sure if this is a beginners issue -- tie with DB_File

2001-04-18 Thread Kat
*sigh* I have changed the script to include -w, but not strict. HOWEVER, if I change the error routine to a "die "message $!" " I do not even get a STATUS??!?! It is blank. BUT, to make matters even more fun, if I DELETE the existing db file and then change the tie to include O_CREAT | O_

Re: not sure if this is a beginners issue -- tie with DB_File

2001-04-18 Thread Peter Scott
At 08:19 AM 4/18/01 -0400, Kat wrote: >Ok, I have exhausted all other options. This code used to work, and now, >no matter what I use for a path, I always get an error opening the file... >Does anyone see anything obvious here in this snippit?? Not related to not being able to open the databas

Re: Running a script

2001-04-18 Thread Matt Cauthorn
make sure that the directory you have the script in is in your path. try this: echo $PATH and you should see all the directories your shell looks for executables in. The easist way to solve your problem is to move your script to something like /usr/local or one of the obvious directories listed

RE: problem with variables

2001-04-18 Thread Brent Michalski
> So your saying that Perl can handle calculating cosine while iterating > through Pi? Hmm, where did I mention Pi or cosines anywhere in my answer? I am simply trying to help out beginners and tackle common programming tasks that can be done in more of a Perl-ish way. If you want to show a wa

Re: html file

2001-04-18 Thread Casey West
On Wed, Apr 18, 2001 at 12:37:54PM +0500, arfan wrote: : dear all ; : i have a html file in my /home/arfan and want to watch it in my : browser (netscape). : hoping reply : arfan arfan, This isn't a Perl issue at all. I'm sorry but this is the wrong place for help on this issue. Check go

not sure if this is a beginners issue -- tie with DB_File

2001-04-18 Thread Kat
Ok, I have exhausted all other options. This code used to work, and now, no matter what I use for a path, I always get an error opening the file... Does anyone see anything obvious here in this snippit?? #!/usr/bin/perl #This script will return quiz responses to a browser. It reads from a qui

html file

2001-04-18 Thread arfan
dear all ; i have a html file in my /home/arfan and want to watch it in my browser (netscape). hoping reply arfan