> 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
> 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
> 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
> 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 ",".
[
> 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
> 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]
> 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
> 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
> >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
> 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
> 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
> >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
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";
> }
> -
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]
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]
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
16 matches
Mail list logo