follow-up questions on Mail::Send

2005-11-16 Thread ZHAO, BING
Hi, I have used small single package named as X.pm before, never big ones. But for Mail::Send, I downloaded this huge file MailTools-1.67. I dug several modules out like Send.pm, Mailer.pm etc and saved them in the current directory. Tried to run my file, but

Re: follow-up questions on Mail::Send

2005-11-16 Thread ZHAO, BING
Oh, I indeed did what you'll just told me to do: 1. I first downloaded this MailTools-1.67.tar.gz 2. ungziped it 3. cd MailTools-1.67 4. Moreed Readme, followed the instructions, until the last step, make install failed, still lots of files including a lib/ were generated. 5. Tried to run my

New on Mail::Send

2005-11-16 Thread ZHAO, BING
I am on Windows XP home edition. I have this software Secure Shell which tunnels to a remote host(unix). The remote is very strictly managed, any installation of anything would require me to talk to/call up the system administator(this is national security). Then I have this

about email sender

2005-11-15 Thread ZHAO, BING
Hi, all: I have tried to read the email::sender module on CPAN, but it is far beyond my ablilty to understand it. And the synopsis gave me big headache too. But I just feel it should be no more than 5/6 lines to : 1. Send email to [EMAIL PROTECTED] 2.

tricky problem about stat function

2005-11-13 Thread ZHAO, BING
opendir GOP, SCRATCH/BACKUP or die cannot open directory SCRATCH/BACKUP:$!; my @smm=grep{($_ ne .) ($_ ne ..)} readdir GOP; foreach (@smm){ my($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks) = stat($_); print $ctime; } closedir

Re: tricky problem about stat function-follow up

2005-11-13 Thread ZHAO, BING
On Sun, 13 Nov 2005 17:36:39 -0800 ZHAO, BING [EMAIL PROTECTED] wrote: opendir GOP, SCRATCH/BACKUP or die cannot open directory SCRATCH/BACKUP:$!; my @smm=grep{($_ ne .) ($_ ne ..)} readdir GOP; foreach (@smm){ my($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime

about creating a file in directory

2005-11-07 Thread ZHAO, BING
Hi, It seems pretty easy to unlink a file from a directory, but wherever describes unlinking file has no counterpart on create a file. I did perldoc -q file: got what seemed to be what I need, then tested my program, no good: opendir PDB,SCRATCH or die cannot

PS what is the correct/efficient function to create a file

2005-11-07 Thread ZHAO, BING
Hi, unlink $file works fine, but link $file doesn't even exist, The sysopen function seems to be tedious, does anyone know how to effectively create a file in some directory in perl? thanks a lot best, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

about cron and perl

2005-11-04 Thread ZHAO, BING
Hi, I was advised to check out man cron for how to use cron. Set off do_it.pl using cron. But that's about it , all I can get from web help. I have no clue: 1. what should I include in the do_it.pl, say to delete certain old files? 2. this is a more unix problem,

about running unix command in perl script

2005-10-28 Thread ZHAO, BING
Hi, Is there a way to run unix command in perl? To be specific, for the ftp command: 1.ftp ftp.rcsb.org 2.cd /pub/pdb/data/structures/divided/pdb/ 3.cd nx 4.get pdb1nxc.ent.Z 5.bye

about man page

2005-10-28 Thread ZHAO, BING
Hi: what is manpage? Where is it locate in cpan? to be specific, how do I get to cron manpage? thank you all. best -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

delete file after on week

2005-10-23 Thread ZHAO, BING
Hi: I need to delete files older than one week old, I know how to code that(with the help of many kind people on this list): But it only happens when I run the program, there is a chance I will not be running the program for more than a week. And the dir keeps getting

call java in perl

2005-10-22 Thread ZHAO, BING
Hi, I knew there are many ways to call java in perl or call perl in java, but I have been searching, still got nothing, does any of you know some online source about linking the two together? thanks, bing -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

remainder function

2005-10-14 Thread ZHAO, BING
Hi, Is there a remainder function, since I need to check if a number is divisible by another? Thank you all. best, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

keeping track of the 'age' of a file

2005-10-10 Thread ZHAO, BING
Hi, Sorry I have to ask random questions again, perl is so profoud and I just finished reading the Llama book, and deeply feel like doing crazy things but couldn't but still believe perl could do it and believe one of you guys could enlighten me.. No more

hi

2005-10-10 Thread ZHAO, BING
Hi, I am doing this simple enough script, but somehow it generates error: open COO, 1898.inf or die Cannot open file 1898.inf:$!; @shrimp=COO; foreach @shrimp{ $squid=substr($_,0,4); $shark=$_..pdb; system \rm dali.lock; #ignore this part system dalilite

two questions

2005-10-06 Thread ZHAO, BING
Hi, 1. How do I change the unix system background to black, mine is while which is so annoying whenever I do perl. 2. How do I download perl modules form CPAN, I completely understand the 4 steps listed there, but the problem is I need the perlmodule.gar.gz file

question about # of files in a directory

2005-09-28 Thread ZHAO, BING
Hi, first, I want to thank all who viewed my first question days before, especially to those who took time to answer it. It was trenmendous encouragement for a beginner perlee like me. Thanks again. My question: Is there a way to call or maybe get the # of

hi

2005-09-27 Thread ZHAO, BING
Hi, How do you INPUT the output( of a file) to the designated file? To be specific, if the file being output generates a score/number which needs to be subsequently input into another file, how to you set up the output and input? Thannks a lot. bz -- To unsubscribe,