Re: Installing Perl and CPAN local

2014-03-04 Thread Sébastien
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

Re: Need a Perl Book for Beginner

2012-12-04 Thread Sébastien Feugère
. > > 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/

Re: spaces in filenames on winXX

2005-02-21 Thread Jean-Sébastien Guay
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

Re: any perl project ideas

2004-12-15 Thread Jean-Sébastien Guay
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

RE: Perl::Optomizer

2004-05-13 Thread Jean-Sébastien Guay
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>

RE: Flag for script

2004-04-15 Thread Guay Jean-Sébastien
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

RE: guessing script

2004-04-15 Thread Guay Jean-Sébastien
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

RE: I don't get it ... array

2004-04-14 Thread Guay Jean-Sébastien
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

RE: using strict

2004-04-05 Thread Guay Jean-Sébastien
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

RE: using strict

2004-04-05 Thread Guay Jean-Sébastien
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

RE: using strict

2004-04-05 Thread Guay Jean-Sébastien
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

RE: using strict

2004-04-02 Thread Guay Jean-Sébastien
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

RE: using strict

2004-04-02 Thread Guay Jean-Sébastien
> 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

RE: using strict

2004-04-02 Thread Guay Jean-Sébastien
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

RE: using strict

2004-04-01 Thread Guay Jean-Sébastien
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

RE: determing number of records returned with DBI

2004-03-30 Thread Guay Jean-Sébastien
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

RE: determing number of records returned with DBI

2004-03-30 Thread Guay Jean-Sébastien
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

RE: Hash Help Needed !

2004-03-25 Thread Guay Jean-Sébastien
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

RE: Question about cgi forms (slightly OT)

2004-03-25 Thread Guay Jean-Sébastien
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

RE: references

2004-03-24 Thread Guay Jean-Sébastien
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"; >

RE: QUERY_STRING

2004-03-24 Thread Guay Jean-Sébastien
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

RE: nested while loops using DBI

2004-03-22 Thread Guay Jean-Sébastien
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

RE: Some java some perl

2004-03-11 Thread Guay Jean-Sébastien
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

RE: iterating through hash of hash references

2004-03-03 Thread Guay Jean-Sébastien
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

RE: Could I put commands in a variable

2004-02-20 Thread Guay Jean-Sébastien
> 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

RE: WinXP copy-paste, was RE: A little help please?

2004-02-03 Thread Guay Jean-Sébastien
> 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

WinXP copy-paste, was RE: A little help please?

2004-02-02 Thread Guay Jean-Sébastien
> [...] 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

RE: Upgrading Perl linux 5.6 rpm to 5.8.2 source

2004-01-14 Thread Guay Jean-Sébastien
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

RE: Upgrading Perl linux 5.6 rpm to 5.8.2 source

2004-01-14 Thread Guay Jean-Sébastien
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

RE: Ending a compound statement

2003-12-18 Thread Guay Jean-Sébastien
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;

RE: Server Errors

2003-12-15 Thread Guay Jean-Sébastien
> 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

RE: Question for this Group ... dont flame me :)

2003-12-12 Thread Guay Jean-Sébastien
> 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

RE: Question for this Group ... dont flame me :)

2003-12-12 Thread Guay Jean-Sébastien
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

RE: Beta Testing a Robot

2003-12-04 Thread Guay Jean-Sébastien
> 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

RE: Beta Testing a Robot

2003-12-04 Thread Guay Jean-Sébastien
> 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

RE: PPM3 Activestate Perl (and CPAN on Win32)

2003-11-25 Thread Guay Jean-Sébastien
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]

RE: pagination of dbi results on html browser

2003-11-17 Thread Guay Jean-Sébastien
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

RE: Playing with Numbers

2003-11-10 Thread Guay Jean-Sébastien
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

RE: Died on open command

2003-11-10 Thread Guay Jean-Sébastien
> 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]

RE: Died on open command

2003-11-10 Thread Guay Jean-Sébastien
#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

RE: Died on open command

2003-11-10 Thread Guay Jean-Sébastien
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

RE: Died on open command

2003-11-10 Thread Guay Jean-Sébastien
, 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,

RE: Died on open command

2003-11-10 Thread Guay Jean-Sébastien
-) 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]