Re: modules

2001-08-14 Thread Rachel Coleman
> How do I know what modules are installed ? > Does the CGI_Lite module come bundled by default? This question is a CPAN FAQ, which you can read here: http://www.cpan.org/misc/cpan-faq.html#How_installed_modules You may find the other CPAN FAQs useful; the url for the full list is slightly differ

Re: Breaking out of foreach loop

2001-08-06 Thread Rachel Coleman
> Can someone tell me how I can break out of a foreach loop before the end? Use the 'last' command. See http://www.perldoc.com/perl5.6/pod/func/last.html for an explanation of how to use it. It works for breaking out of any loop e.g. foreach, while, until. Best wishes, Rachel -- To unsu

Re: Checking for letters and spaces in regular expression??

2001-08-06 Thread Rachel Coleman
> You are saying - "Report invalid characters unless there are alphabetical characters in the string". > But there are alphabetical characters in the string... > You should have said - "Report invalid characters unless there are ONLY > alphabetical characters in the string, from the beginning to t

Re: Splitting a string into a Array of Arrays

2001-07-31 Thread Rachel Coleman
> I know this is simpler then what I am making it but I am stumped. I used LWP::UserAgent to fetch some data from a > web page, What I need to do is to load the data which I believe is just one long string that I got from calling content() > into an array of arrays by splitting on "\n" and ",". [

Re: Array::compare question

2001-07-29 Thread Rachel Coleman
> Does someone know if the array::compare module can handle array of > arrays? I haven't seen anyone answer this yet. Based on the documentation (http://theoryx5.uwinnipeg.ca/CPAN/data/Array-Compare/Compare.html), Array::Compare takes 2 arrays and tells you if they are the same, or different, w

Re: Compiling into C source code.

2001-07-29 Thread Rachel Coleman
> sorry, i figured this one out myself, > > thanks anyway! :) What was the answer? Best wishes, Rachel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Expect

2001-07-29 Thread Rachel Coleman
> Does anyone know where to find good information on the expect module? > the camel book did not say much about it. Try http://theoryx5.uwinnipeg.ca/CPAN/data/Expect.pm/Expect.html Found by my usual route for finding out more about a module, which is: 1. Go to www.cpan.org 2. Follow the link 'P

Re: $1

2001-07-29 Thread Rachel Coleman
> Making a mistake once can be exused, > making it twice is stupidity and > making the same mistake a third time only proves you have no brain ;-) > > Sorry, I figured out where the problem is... What was the problem and how did you fix it? Other people reading the list (or searching the archive

Re: newbie DBI

2001-07-29 Thread Rachel Coleman
> >I'm trying to decide on using DBI or an ODBC connection for moving data > >into or out of MS ACCESS 97 (or 2000) and back into the ACCESS table > >[yep, or change inside table]. > > > >Given I need to perform all the usual extract and append, etc. tasks, do > >any of you have suggestions or poi

Re: sending mail

2001-07-29 Thread Rachel Coleman
> Hi friends, I wanna send mails with the results of some perl scripts. I've > installed Debian GNU/Linux with Apache, Perl & sendmail. Do I need some > extra module? I think you *can* just print stuff directly to sendmail. However, I found Net::SMTP to be useful, if a little fiddly. Mail::Mail

Re: regexp issues TR

2001-07-29 Thread Rachel Coleman
> Let me rephrase what I want to do since I was so unclear the first > time: I want to output an error message every time the input > includes characters that are not the following: A-Za-z0-9_@.- or a > space(s). > At this point, I've tried: > > if ($params{$i} !~ /[^\w\@.-\s]/g) { > print "Erro

Re: output file for download

2001-07-24 Thread Rachel Coleman
> >you just need to provide a link to your file. > >simply,click here to download my file > >and the browser,itself will automatically bring that dialog box, > >whenever user clicks on "Click here to download my file". > > I would like to create the file dynamically with a cgi program and send it

Re: Comparison of a string and filename

2001-07-18 Thread Rachel Coleman
eq.data"; print "$myfile\n"; # old way, with \n #$myfile= "$year.$mon.$day.$curseq.data\n"; #print "$myfile"; > if ($myfile eq $filename){ >print "The last file has correct filename : $myfile\n"; > } > -

Re: Problems with ^M

2001-07-17 Thread Rachel Coleman
WTDI ... ^M is the carriage return character, used in windows but not Unix. It can be represented in Perl by \r. So: s/\r//g should also work. Best wishes, Rachel Coleman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: foreach examples/usage

2001-07-17 Thread Rachel Coleman
t;; # do it again using the implicit $_ variable foreach ( @array ) { print; } # newline for tidiness print "\n"; This script prints out: 123456789 123456789 Best wishes, Rachel Coleman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Probably a "no-brainer" - the last two messages.

2001-06-05 Thread Rachel Coleman
quot;Can't open " strings, e.g. insert 'print' or 'die' before them. You aren't putting the strings to any use, therefore they are 'useless'. Does that make sense? Best wishes, Rachel Coleman