issue with chomp - chop need to trim()

2002-09-09 Thread dizzy74
Hi All Today I was trying to do some work with perl and needed to use a function that would trim leading or trailing spaces from a string. Looked on the web and found basicaly perl uses either chop or chomp each with their own features. When I tried to apply it to my $var it either return

How to install DBI - where exactly to get, how to???

2002-08-17 Thread dizzy74
Hi all IM trying to install the DBI module from CPAN (the recommended "live" install) perl -MCPAN -e "install Bundle::DBI" Goes through gyrations of installing " Going to read \.cpan\sources\authors\01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Going to read \.cpan\sources\modules\02packages

Re: year as variable

2002-08-19 Thread dizzy74
use Time::localtime; $b = localtime->year() +1900 ; print "What year were you born in?\n"; $a = ; chop($a); $age = ($b - $a) ; print "You are $age years old!\n"; -- Date: August(VIII) 12th(XII),2002(MMII) !! !

Re: Perl mailing list script

2002-08-20 Thread dizzy74
http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Mailing_Lists/ Gary Hawkins wrote: >Before I write one, is there already a mailing list script that would >handle subscribe/unsubscribe with emails for confirmation? User enters >email address on a web page and clicks subscribe or unsubscri

How to find all modules CPAN alternates

2002-08-20 Thread dizzy74
Hi All Im wondering how does one know what modules are available? Is there a master list with accompanying methods? Or is CPAN the only source? http://cpan.org/ Sometimes CPAN seems much too cryptic for a beginner(at least from my view). So basically Im asking is there a more (beginner) fr

Re: Printing perldocs

2002-08-27 Thread dizzy74
James Campbell wrote: >Hi all > >Dumb question but... Does anyone know how to print a perldoc page displayed >in the Windows DOS prompt? > > > How about perldoc -f flock > your_file_lock.txt > LPT1 rob -- Civilization is the process of reducing the infinite to the finite. -- To