Please do http://learn.perl.org/installing/windows.html then
http://www.cpan.org/modules/INSTALL.html.
On 4 March 2014 17:42:01 GMT+07:00, Yosef Levy wrote:
>Hello All,
>
>I am interesting install Perl and CPAN modules in custom location
>folders.
>I am using WIN7 64bit.
>Pls. provide me step b
.
>
> Found one book Perl For Dummies, 4th Edition not sure what is
> you all recommendation to buy this book ?
>
> Thanks in advance,
>
> Asad
>
--
Sébastien
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Harry,
You have three choices.
[...] snipped techniques
So back to my original question:
Is there a module or something that takes care of that pre
processing for me?
I think you misunderstood. The problem with your script is not the
spaces in the string. It's that you used a single b
ils.
Good luck,
J-S
--
__
Jean-Sébastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.4 - Release Date: 2004/12/15
--
To u
uld get the right page,
as I did.
J-S
_______
Jean-Sébastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
Hello Jakob,
> I'm trying to create a script with where you can put a flag to the script
or
> not
> fx run it like:
>
> script -h
> or just
> script
I would use one of the Getopt::* modules, because parsing command line
options is something very standard, and as you add more and more options,
th
Hello Greg,
> Thanks for you comments. Is this the best way then? Seems to work, but
I'm
> curious what could be any better..
Your version is fine. Here's mine, just so you have another take on how to
do some things. Among a few other things, I added checking for so that the
guess has to be a
Hello Romain,
> sub n_list {
>
> my($a)[EMAIL PROTECTED];
>
> ...sql query...
>
> my $sth=$dbh->prepare($sql);
> $sth->execute();
>
> my node_l;
As others have noted, this should be @node_l, but you say it's that way in
your code (why didn't you just paste your code btw? Would have avoided su
Hello Joseph, David,
> A stronger argument has to do with mindset. The || operator is an
> expression evaluation operator, appropriate to mathematical or
paramathematical
> expressions. The context really calls for a flow-control operator, or.
Thanks for making my point better than I could, Jos
Hello Joseph,
> One thing I would request is that you trim off any material to which you
are not
> responding from old posts. This helps keep bandwidth and storage needs
down.
I'll keep that in mind. I usually don't keep all the thread of replies that
Outlook ( grrr) keeps at the bottom, seems l
I am sorry David, it just seems like I am having trouble communicating
clearly. We are apparently in a disagreement, but your points are not at all
what I wanted to explain... I'll try again.
> you should test it yourself. i am not sure how good you are
> with Perl and i
> don't want to sound lik
Hello Derek,
> can I email you from know on??? : ) You are so through! Thank you!
No, I would prefer that you always reply to the list. First reason is that
other beginners can benefit from our exchange (and the mails end up in a
searchable archive), second is that if I'm not there (or for th
> Guay Jean-SÃbastien wrote:
>>
>>> open (CRITICALSERVERS, "$crout") || die "can't open file \n: $!";
>>
>> As I said, you should replace || by or in the above line. See the
>> precedence rules in "perldoc perlop" for details.
>
> why do you think so? is there any problem in the above line?
The
t $line . "\n";
}
As you can see, it is very similar, but since we get the whole file into the
array, we can close it right after, and also we loop over the array instead
of looping and getting one line at a time until we get to the end of the
file.
Hope this helps,
Jean-Sébasti
come from the relatively new school of programming.
As I understand, they are features of the language that are dangerous to use
in some contexts, so use strict disallows them knowing that if you really
want to use them, you'll disable strict for the block of code where you use
it, and then re
Hi again Andrew,
> With the mysql driver, it does return the number of fetched
> rows before you start
> iterating through them. It does what I need it to do. Thanks.
Ok, but that behaviour is probably specific to DBD::MySQL, and can't be
relied upon if you change to another DBD... I would use
Hello Andrew,
> Is there a way to find out how many records were returned
> with a DBI query? There's the
> obvious counting each record as you fetch it, but I need the
> count before I start going
> through them.
I was looking through the DBI documentation (perldoc DBI) not long ago and
this
Hello Jason,
> $VAR1 = {
> 'oids' => '%response_values',
> 'time' => '03/25/2004 03:16:39'
> };
...
> If so, what is wrong with my assignment statement ?
>
> push @{$response_hash{$request_id}},{time => "$time",oids =>
> "%response_values"};
That is exactly what Charl
Hello,
> mike wrote:
>
> > When I do Search in the web-browser, is there any way to get it to
> > search the values in the fileds of the form?
> >
> > Currently all the values show up, but they dont seem to
> appear to be in
> > scope for searching
>
>
> Show some code -- likely your logic is
Hello Joe,
> i have the following code:
>
> $sth = $mysql_dbh->prepare("select subroutine_pointer from
> $database.equipment_manufacturer where
> manufacturer=\"$remedy_eqpt_mfgr\"");
> $sth->execute();
> $subroutine_pointer = $sth->fetchrow_array();
> no strict "refs";
>
Hello Mike,
> Do we know where I can get a clear definition
> of "query_string"?
[and in another message...]
> Is there any place we can look up the definition
> of these such as "CONTENT_LENGTH" & query_string.
I'm not sure why you're asking here for something like that. You can use
Google t
Hello Mike,
> $row=$dbh->prepare("SELECT contact_id,first_name,last_name,organisation
> FROM tb_contacts WHERE organisation ILIKE ?");
[...]
> while(($id,$first_name,$last_name,$organisation) = $row->fetchrow_array())
{
[...]
> $row=$dbh->prepare("SELECT id,contact_id,type_of_contact,priority
Hello Joseph,
>> String[] aStr = {"-e", "'print(\"Ola\n\") foreach
(1..100);'"};
>>
>> Process p = r.exec("perl", aStr);
>
> You told the system to open the perl compiler here. You may also have
Offered
> it 100 lines like this:
> "Ola
> ""Ola
> Which Perl would have a ver
Hello,
> It looks like not all of the fields have something in them. Perl is taking
blanks for
> undefined for some reason.
An empty field in a database is not a "blank", as you say, but a NULL.
Meaning it's not just blank, but effectively inexistant - there is no value,
not even the empty strin
> On Feb 20, 2004, at 2:02 PM, Joel wrote:
>> Thanks, can you give me some examples of loops like that?
>Here's one:
Nice code James, nicely reusable. Just need to add world file loading and
maybe support for items... ;)
But then all you have is a world in which you can move. What about actual
ga
> Not quite. There seems to be at least one extra step. With XP, you have
to
> call up a menu and select 'mark' before selecting. I can't recall at the
> moment whether you have to do menu selctions to paste at the insertion
point.
> In 2K, you can select text by dragging. If there is text sele
> [...] inclding copy-and-paste [though the XP version is
> intentionally more of a pain-in-the-ass than the
> W2K version, as with almost every professional
> aspect of the OS].
Err, not really sure what you mean by this. I have found it's precisely the
same in WinXP as in Win2k. Care to expl
te understood the subtleties of...
Thanks drieux,
______
Jean-Sébastien Guay
Conseiller
> Service des cartes de débit et guichets
> Services électroniques - Direction 499
> Banque Laurentienne du Canada
> Tél: 514.522.9800 poste 4840
> Utilisez nos
k that simply
upgrading Perl and not all the other modules you have installed would
seriously bork the install...
Honestly, I didn't know that was just an ActiveState thing.
J-S
______
Jean-Sébastien Guay
Conseiller
> Service des cartes de débit e
Hello Kenton,
It depends on what you want to do. There is not really a "right way", since
the two series of statements you mention will lead to different results.
(I added numbers to the different parts of your examples, makes them a bit
easier to follow)
> if (expression1) {
> statement1;
> I've got the below script saved on my server - but every time I use it I
> get an Internel Server Error! I've set the permission to 755 but still no
> luck. Any ideas folks?
First of all, make your life easier with
use strict;
use warnings;
right after the shebang line.
Second of all, the si
> I don't know if this [specific] module is "standard"
> or not, but it was already installed on the servers,
> so I am guessing it is.
I don't think it is, or at least it wasn't installed by doing a full install
of ActiveState Perl 5.8 in my case. Perhaps the "real" Perl distribution
differs fr
Hello Jeff,
These answers are of course my own experience, but may be significant to
understand the bigger picture. I reorder your points a bit in my reply :-)
> So, why is it that most of the solutions represented
> in this group tend to point to a CPAN module when
> the code for it isn't that
> and may very quickly become
> outdated, then the amount of crud someone must wade through if they are
> one of the few that actually check the archive first has gone up greatly.
You've got a good point there. I didn't see it from that point of view, but
now that I do, I agree that this is not re
> I don't quite understand why the first response is sent back to the list
> rather than just the OP though?
Why do you send your responses (answers to questions) to the list instead of
to the OP? So that others can benefit, and so that it will be in the list
archives when someone else has the sam
7;t
for everyone, because it has some pretty wide-sweeping implications on your
machine.
Hope that helps!
J-S
_
Jean-Sébastien Guay
-- Conseiller technique - Administration
-- (514) 522-9800 #4840
-- [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
te::Toolkit, etc) will
help greatly, with the added benefit of separating code and interface, which
will make your Perl/web project easier to maintain.
Hope that helps. Good luck,
J-S
_
Jean-Sébastien Guay
-- Conseiller technique - Administrat
my $integer = 432;
my $string = sprintf("%05d", $integer);
Yay!
J-S
-Message d'origine-
De: SilverFox [mailto:[EMAIL PROTECTED]
Date: 10 novembre, 2003 16:14
À: [EMAIL PROTECTED]
Objet: Playing with Numbers
Hi all, i'm trying to figure out how to test if a number is five digits and
if
> That's exactly what John said. ;)
I realized that 5 seconds after I sent the mail... <:-(
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
#x27;t do anything to go
against what ends up being a great benefit for us multiplatform Perl coders.
:-)
J-S
_____
Jean-Sébastien Guay
-- Conseiller technique - Administration
-- (514) 522-9800 #4840
-- [EMAIL PROTECTED]
--
To unsubscribe, e-mail
ouldn't have read so quick...
Still, since cmd.exe goes to great lengths to prevent us from using the
slash, forcing the backslash onto us, I thank ActiveState for not going the
same way. :-)
Thanks for rectifying things.
J-S
_____
J
, it's irrelevant, it works, so let's just use it, regardless of
who's to blame (err, thank).
J-S
_____
Jean-Sébastien Guay
-- Conseiller technique - Administration
-- (514) 522-9800 #4840
-- [EMAIL PROTECTED]
--
To unsubscribe,
-)
So the solution proposed will work fine on Unix, Windows, MacOSX, etc.
Just FYI.
J-S
_
Jean-Sébastien Guay
-- Conseiller technique - Administration
-- (514) 522-9800 #4840
-- [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
43 matches
Mail list logo