Re: perl module not found.

2009-02-02 Thread Ralf Peng
2009/2/2 Alf Stockton : > When trying to install an application written in perl I get the error > message >CSS::Squish >= 0.06...MISSING > so I then attempt installing it via > perl -MCPAN -e shell > cpan> install CSS::Squish > > but when I attempt > > r...@general:~# perl -MSquish -e 1 Y

Re: a question related to file selection

2009-01-23 Thread Ralf Peng
2009/1/23 Li, Aiguo (NIH/NCI) [E] : > Hi all, > > > > I need copy files from a directory daily to a folder. How can I select > files based on dates that were created? > for copying a file, use File::Copy: http://search.cpan.org/~nwclark/perl-5.8.9/lib/File/Copy.pm to get file's last modification

Re: use vs require

2009-01-22 Thread Ralf Peng
2009/1/23 ben perl : > Hi Chas, > > Can you give me an example when one would be used over the other? So, is > require used more for efficiency, so we load the module only if we need it? > Thanks, > -Ben > Many time we need 'require' not 'use'. For example, given this .pm: package mylib; requir

Re: How and from where to install perl 5.10 on unix (solaris) m/c?

2009-01-14 Thread Ralf Peng
2009/1/15 Sarsamkar, Paryushan : > Hi All, > > > > I would like to install Perl 5.10 on UNIX (Solaris) machine. There is > 5.0 and 5.6 version of Perl on that machine, but it does not have DBI > module that I want. Can anyone please help me in this regard? > rather than installing Perl fully, you

Re: external program control

2009-01-11 Thread Ralf Peng
2009/1/11 bft : > Hello all, > I am trying to launch an instance if Firefox, but I do not want my Perl > script to stop while Firefox is open. > > I have tried: > print `firefox`; > > and > > print `firefox &`; > > Both hang my perl script until I close firefox. > > Any suggestions please? > mayb

Re: Send email using smtp

2009-01-06 Thread Ralf Peng
2009/1/6 FĂșlvio : > Hi Jenda, > > I try to debug the code and the error message was: "Bad file > descriptor". > I will try to use the other modules. > I need only send an email. > If you are not familiar with SMTP protocal (RFC 821), you are hard to use Net::SMTP. I'd suggest you use another modul