Re: Exception Handling - Professionally

2004-06-10 Thread drieux
On Jun 9, 2004, at 9:57 AM, Randal L. Schwartz wrote: Drieux == Drieux [EMAIL PROTECTED] writes: Drieux if ( ref($got_back) eq Foo::Bar) No no no. Stop using ref(). It means you can't replace it with a subclass of it. You want (and I show in my still-hidden article); if (UNIVERSAL::isa

Re: procfarm equivalent

2004-06-10 Thread drieux
allowing a module work out how many processes to create? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Exception Handling - Professionally

2004-06-09 Thread drieux
now if you're a subscriber. But in there, I tout Exception::Class as a good solution. We look forward to the kvetch. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Calling subs

2004-06-09 Thread drieux
commonly shared functions. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Perl Class simple problem

2004-05-29 Thread drieux
' }; self; # since the 'new' returns the blessed self... } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Can Perl be faster than C ?

2004-05-19 Thread drieux
of stuff that is much closer to the OS specifics that are easier to write and maintain in a 'c-code' source that one builds an XS module to expose to the Perl Coders as the compromise. cf: perldoc h2xs So use the correct Swiss Army Chainsaw on the problem. ciao drieux --- -- To unsubscribe, e-mail

Re: Recommended Readings

2004-04-25 Thread drieux
are 'formal languages' and hence have to be formalizable, this is why they are by definition 'not natural languages'. So the question then really is what part of the 'formalization' are you having problems with? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Security Question

2004-04-25 Thread drieux
On Apr 23, 2004, at 9:04 PM, WC -Sx- Jones wrote: [..] Please, decode this key: SxEyj/gJs5pXISX11386025 Thank you in advance :) [..] My compliments to your wit. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: Daemon configuration for Apache

2004-04-25 Thread drieux
/conf/httpd.conf or not - since reasonable folks do not generally stuff shell variables into /etc/sysconfig/apache At which point there is the other odd question that comes to mind, why? What is it you are really trying to work out ? Why not talk to the httpd directly? ciao drieux

Re: [PHP] PHP vs PERL? HOPE THIS HELPS

2004-04-25 Thread drieux
language should I pick' - unfortunately that is really only one part of the problem. As the saying goes - anything can be turned into a club - the questions then become what exactly was one planning to beat to a pulp with it. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: coding standards question and RFC

2004-04-21 Thread drieux
On Apr 21, 2004, at 4:16 AM, Michael C. Davis wrote: [..] Thanks for the insights, drieux. While I wish I were in a position to establish corporate policy, I'm not, and my objective is merely to satisfy myself that I have a reasoned, workable approach. Your feedback helps a lot. Coming up

Fwd: Interview Questions

2004-04-20 Thread drieux
problem or this or that, and one check for how they deal with an ambiguously worded coding problem - hence whether they should be looking before leaping - and then one catches their basic issues with actually doing perl code. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: coding standards question and RFC

2004-04-20 Thread drieux
on creating the appropriate code coverage in the t/ and making sure that the POD is useful are the places where your time is best spent. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Interview Questions

2004-04-20 Thread drieux
with an ambiguously worded coding problem - hence whether they should be looking before leaping - and then one catches their basic issues with actually doing perl code. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: Where do you put your modules?

2004-04-10 Thread drieux
the simple strategy of being put in $ENV{HOME}/bin with a uselib line of $ENV{HOME}/lib/perl5 then use your installer with the offset values to install it there. Haul around one distribution and it will work for all of your 'user names' on all of the machines. ciao drieux --- -- To unsubscribe

Re: Process control from LAN master computer

2004-03-28 Thread drieux
, one does that... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: How to determine if STDIN has piped data?

2004-03-28 Thread drieux
there\ Happy Happy | ./stdio.plx Hello there Happy Happy past the line [jeeves: 29:] HTH. yes, your old school tie 'c coding tricks' are mostly what you fill find most useful... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: How to add an item into Shopping cart

2004-03-24 Thread drieux
into the database. If all of the items that can be placed in the cart are on one page, then you seem to have your solution here. The trick becomes if one has to create a shopping cart that will persist over several web page presentations. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL

Re: From Windows - Linux

2004-03-19 Thread drieux
for the 'learn perl references, objects, modules' by R. Schwartz, it will help get you into module building as well... HTH. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: collecting data from a TL1 devices

2004-03-19 Thread drieux
for keeping track of which of them you are dealing with as they write to you. But you can get that part spun up after you have your basic translation table in place. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: STATing large files

2004-03-11 Thread drieux
. HTH. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: True IP behind a router?

2004-03-10 Thread drieux
to go about this type of problem is discussed at http://www.wetware.com/drieux/CS/Proj/DI704/ ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: how do modules work?

2004-02-20 Thread drieux
sure that your documentation makes clear where to find all of the other docs... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: $self

2004-02-20 Thread drieux
{ my ($me, $arg, $other) = @_; $me-doOther($arg) unless $other ; ... } but I am fond of 'my $me' and it saves me from having to type two additional letters... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: how do modules work?

2004-02-17 Thread drieux
. This is a part of how/why one likes to encapsulate things into perl modules so that one can hide the common repeatively repeated redundent parts without having to keep retyping them over and over and over again in each new script that you need. HTH. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL

Re: Virtual Directory Problem

2004-02-15 Thread drieux
back and review what exactly you are trying to do in the process. Do you really like having a declared cgi-bin directory? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: testing state of filehandle

2004-02-11 Thread drieux
looked at say perldoc IO::Handle eg: $io-opened Returns true if the object is currently a valid file descriptor, false otherwise. The perldoc IO::File is a subclass of IO::Handle... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Email module

2004-02-09 Thread drieux
-) If all you need is a form mail then check out http://cvs.sourceforge.net/viewcvs.py/nms-cgi/formmail/ but it rests on even 'older' technology than the Mail::Mailer modules... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: Your vendor has not defined SGI::FAM macro new

2004-02-05 Thread drieux
/JGLICK/SGI-FAM-1.002/lib/SGI/FAM.pm you will note that a. there is no 'new' in the perl code, b. hence it goes into the AutoLoader, but gets a response back that the 'new' construct is not found in the underlying XS code. HTH. ciao drieux

Re: special vars

2004-02-04 Thread drieux
to be flushed... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: (U) What are the best Perl books out there ... More than 1 is fin e ... list as many as you like

2004-02-04 Thread drieux
On Feb 4, 2004, at 2:36 PM, Johnson, Michael wrote: CLASSIFICATION: UNCLASSIFIED Classification: UNCLASSIFIED I guess a part of the question is at what level. My general documentation is at: http://www.wetware.com/drieux/CS/Proj/TPFH/gen_doc.html if you feel at home reading just Perl Doc's

Re: upgrading perl to 5.6 from 5.005_03 question?

2004-02-02 Thread drieux
/11/09 SMI require 5.6.1; use strict; use warnings; vladimir: 60:] HTH. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: tty settings

2004-02-02 Thread drieux
code that will deal with that. But there is the problem with the sigkill, which is a non-maskable interrupt. cf man stty ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first

Re: Use and Require

2004-01-30 Thread drieux
in knowing about them? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: print outbut being buffered...

2004-01-29 Thread drieux
On Jan 27, 2004, at 6:59 AM, Michael W.Cocke wrote: This is probably a stupid question, but does anyone know how to force the output of print to actually PRINT, without forcing me to use a \n? did you try $| = 1; cf perldoc perlvar ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How to import symbols and semantics from one namespace into another

2004-01-29 Thread drieux
; sub foo { my ($me,$arg) = @_; print have arg: $arg\n; } } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: procedure entry point slcvs2ptr message

2004-01-28 Thread drieux
not be located in the dynamic link library oracore9.dll [/snip] Has anyone else seen this? If so, how do I fix this? [..] it appears that you have a DLL mismatch problem there. I think the version of the client side is is not correct for what the wrapping code is trying to get to. ciao drieux

Re: Passing several arguments

2004-01-28 Thread drieux
function { (\%author_indexlines, \%poem_lines, [EMAIL PROTECTED], $etc) } then you re-ref them as while( my ($k,$v) = each %$author ) { } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How to import symbols and semantics from one namespace into another

2004-01-28 Thread drieux
http://www.wetware.com/drieux/CS/lang/Perl/PM/quick_pm.html Since basically I go with the idea that perl modules really belong as perl modules and then one has a simpler overall management problem. First because then multiple scripts can use the package, then as you so elegantly have demonstrated

Re: why Bad file descriptor at line 94

2004-01-28 Thread drieux
= \my_cisco_err_handler ); You might also find a better place to write your Dump_log and hence also where you are puttng your Input_log to read from and put those in variables as well... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Placing handmade modules

2004-01-27 Thread drieux
to externalize them as a Perl Module. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Placing handmade modules

2004-01-26 Thread drieux
advocates doing the start of a perl module with h2xs cf perldoc h2xs so that you can start off at least modestly sanely my traditional rant on PM's is at http://www.wetware.com/drieux/CS/lang/Perl/PM/quick_pm.html When I am brewing up a new module, I then of course use something like http

Re: Objects and Arrays...

2004-01-25 Thread drieux
object { my $self = shift; return $self-{OBJECT} unless @_; my @list = $self-{OBJECT}; [..] have we thought about doing that as an array ref? $self-{OBJECT} = [xpto1,xpto2]; ... my @list = @{$self-{OBJECT}}; ciao drieux --- -- To unsubscribe, e

Re: String concatenation qn

2004-01-24 Thread drieux
On Jan 23, 2004, at 5:24 PM, wolf blaum wrote: For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 2004 17:52 may have been monitored or recorded as: i would like to quickly append a string to a variable. open NEWFH, $filename.new or die new procmailrc err; where $filename has

Re: can i do it with perl ?

2004-01-24 Thread drieux
woman[1] And do I need to take down the Satelite Dish first before trying to wash it Or can I put the whole house into the dishwasher You know this with trying to be a Terran is clearly much tougher than the original briefing said... ciao drieux --- [1] cf: Deadmen don't wear plaid

Re: simple probability problem using PERL

2004-01-24 Thread drieux
$probability[$roll] \n; ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: modules and _DATA_

2004-01-23 Thread drieux
has been addressed, my pet favorite way to include a package inside of a piece of code is BEGIN { package Foo::Bar; } That way it will be compiled early and so you can place it above the __DATA__ section since it is not 'data'. ciao drieux

Re: modules and _DATA_

2004-01-23 Thread drieux
On Jan 23, 2004, at 1:36 PM, Eric Walker wrote: [..] when I tried to add a package to it, I did some test and its not reading the DATA anymore. Is there a certain order? [..] How did you put the package in? ciao drieux --- #!/usr/bin/perl -w use strict; my $foo

Re: Loading and using modules using eval

2004-01-23 Thread drieux
); will work without requiring the no strict refs. ciao drieux --- Some code to play around with would be: #!/usr/bin/perl -w use strict; my ($foo, $line) ; while(DATA){ chomp; /^([\w:]+)\s+(.*)/; ($foo, $line) = ($1

Re: modules and _DATA_

2004-01-23 Thread drieux
then it is going off to it's own Monkey.pm file where it is a fully externalized perl module... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Calling SUPER::constructor in the constructor

2004-01-22 Thread drieux
won't be available? [..] did you try something like sub new { my $type = shift; # call our parent class new to get our $self my $self = $type-SUPER::new(); . } cf: http://www.wetware.com/drieux/pbl/perlTrick/OO/Object_in_Object.html ciao drieux --- -- To unsubscribe, e

Re: How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread drieux
on a well done piece. One of the stock modules most of us use is Getopt::Long which is really good for the more complex command line optioning. cf: perldoc Getopt::Long An Illustration: http://www.wetware.com/drieux/pbl/perlTrick/CommandLine/ do_get_opt_long.txt ciao drieux

Re: Referencing Control Operators

2004-01-22 Thread drieux
, $value) = each %$allRecs) { minor nit. So what exactly were you planning to assign the output of that map to??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Need help comparing lines in two files

2004-01-22 Thread drieux
) = @_; my %hash = map { $_ = 1 } @$list1; grep { $_ if ( ! exists($hash{$_})) } @$list2; } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

The Challenge of Learning to Explain - Re: How to take command line argument and use it to run an upgrade script.

2004-01-22 Thread drieux
are they really trying to go with their idea. The only way that a person can sort that out is by trial and error. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: On import v. Just Do It.

2004-01-21 Thread drieux
... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Join strings problem

2004-01-21 Thread drieux
|; print qq|x $Building x\n|; and the last lines look like: TD bgcolor=blackEW9NS8/TDTD/TD TD bgcolor=blackEW9NS9/TDTD/TD /TR /TABLE x TEST.gif x br x EW9NS9 x ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: Join strings problem

2004-01-21 Thread drieux
Word is: $array[3][3]\n; HTH... ciao drieux -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Why isn't perl used more in business and industry

2004-01-19 Thread drieux
you accept the code without the Proper POD and internal comments? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

On import v. Just Do It.

2004-01-18 Thread drieux
ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Fwd: AUTOLOAD error in a module

2004-01-18 Thread drieux
of perl you are using on your PC and the 5.8 version on the linux box??? yes, i'm using perl-5.8.1 and he is using 5.8.0 Strange. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first

Re: Why isn't perl used more in business and industry

2004-01-17 Thread drieux
drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Use strict inside module to apply to entire script?

2004-01-17 Thread drieux
be cooler if one could start with say use Foo::Monkey; and have it contain #!/usr/bin/perl use strict; use warnings; use diagnostics; and work in the sort of #include stockHeaderStuff way that would turn it into a one liner. ciao drieux --- -- To unsubscribe, e

Re: Use strict inside module to apply to entire script?

2004-01-17 Thread drieux
use to start the basic perl code that I will actually create and they have #!/usr/bin/perl use strict; use warnings; already in them - along with various other things that I have found useful to have as a basic template for this or that type of perl coding... ciao drieux

Re: AUTOLOAD error in a module

2004-01-17 Thread drieux
??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Redirect stdout, stderr to file and stdout

2004-01-16 Thread drieux
is going to deal with all of the STDOUT|STDERR as well a always sending you the email... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: deprecated

2004-01-15 Thread drieux
, that it will stop working soon. When one notices that deprecated is used in documentation about code that means it is time to go back and refactor any code you had that used that trick so as to be safer in subsequent releases. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED

knowledge v. IDE was Re: Apel of VIM was Emacs Wizards

2004-01-15 Thread drieux
drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: error.

2004-01-15 Thread drieux
) { ($type) = split(::); } } so that you have a slightly more 'obvious' solution... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: Upgrading Perl linux 5.6 rpm to 5.8.2 source

2004-01-15 Thread drieux
that you need to know or understand about the underlying binary incompatibility between 5.6 and 5.8.X at the XS level... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Emacs Wizards

2004-01-14 Thread drieux
only or in ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Upgrading Perl linux 5.6 rpm to 5.8.2 source

2004-01-14 Thread drieux
that are in the RPM. any additional perl modules that have an XS component will need to be re-built and installed. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Apel of VIM was Emacs Wizards

2004-01-14 Thread drieux
are wandering into is the problem of can one code without an IDE... and in particular without a GUI that provides colour coded syntax matching... One way to think about the problem is: http://www.wetware.com/drieux/PR/blog2/Code/200401.html#id3156855452 One of the reasons that folks tend to use vi

Re: Perl modules on Mac OS X

2004-01-13 Thread drieux
a stand alone CD and will get you the current gcc plus all of the expected supporting libraries. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Oreilly's Learning Perl 3rd Edition

2004-01-13 Thread drieux
with http://perl.oreilly.com/ and http://www.perldoc.com/ and the current version of perldoc stuff that came with your release of perl. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org

Anti-Prototyping - Re: RFC: Prototyping, do or don't?

2004-01-13 Thread drieux
for it... Otherwise, accept that in the long run it is simpler to skip over the prototyping ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Upgrading Perl linux 5.6 rpm to 5.8.2 source

2004-01-13 Thread drieux
upgrade by rpm and then STOMP on it with your own build... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Prototyping, do or don't?

2004-01-13 Thread drieux
point is that one should cut the code with the open dread that one will be the person who will have to come back and refactor the code - so leave one's self bread crumb trails about why one did which - it will help ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Problem with dereferencing of $_

2004-01-13 Thread drieux
] ; } # end of some_sub in this case there is a function call in the while loop that will return the array reference - but there is the minor detail that it is NOT being assigned to $_ as is your assumption... HTH. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: One line variable declaration with multiple conditions

2004-01-08 Thread drieux
of making sure that it is my $guts = ($use_second_choice)? $var2: $var1 || ''; Just a thought to think... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: One line variable declaration with multiple conditions

2004-01-08 Thread drieux
can see that now. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: What is the source of my input, file or STDIN?

2004-01-07 Thread drieux
have updated the code to show how the IO::Select could be used to gate for the case that the code was called without command line input, nor a current connection for STDIN. http://www.wetware.com/drieux/pbl/perlTrick/CommandLine/ file_or_stdin.plx Note all of the noisy 'print statements

Pipe and STDIN - Re: What is the source of my input, file or STDIN?

2004-01-07 Thread drieux
for that there is perldoc perlipc for everything else, there is ioctl() 8-) ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: case and functions

2004-01-07 Thread drieux
it's sorta a case of what exactly were you trying to do with the case like statement??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Integrating perl scripts into KDE / Gnome

2004-01-07 Thread drieux
### vladimir: 58:] this will invoke the 'goWork' code in an xterm... HTH ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

-t and STDIN was Re: What is the source of my input, file or STDIN?

2004-01-07 Thread drieux
that with the IO::Select approach - since that will tell one if there are bits on STDIN, even if the process itself is being run without a controlling terminal. To help illustrate the point: http://www.wetware.com/drieux/pbl/perlTrick/CommandLine/ got_ttyline.plx now granted, I have only tested

Re: One line variable declaration with multiple conditions

2004-01-07 Thread drieux
|| ''; ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: What is the source of my input, file or STDIN?

2004-01-06 Thread drieux
multiple files were specified on the command line)? This is gonna sound a bit silly, so laugh along with me while I play this out. If you want to know which is the whom For What, why not simply code it that way? As an illustration: http://www.wetware.com/drieux/pbl/perlTrick/CommandLine

Re: Microsoft Services for UNIX/LINUX

2004-01-05 Thread drieux
merely need a client side application... But you may wish to check with say Hummingbird http://www.hummingbird.com/exceedusers/ and see if any of the specific issues you think you may be having with putty-exceeds have already been dealt with. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL

Re: Net - SCP - errstr uninitialized

2004-01-05 Thread drieux
be breaking down in strange and twisted manners. What did you see when you ran it in the perl debugger? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Sharing instances of objects between packages

2004-01-05 Thread drieux
of A... have you peeked at the perldoc perltoot to begin with??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Sharing instances of objects between packages

2004-01-05 Thread drieux
one go about creating a wrapper class that will allow one to stuff objects into other objects without actually getting into the whole multiple class inheritence thing: cf: http://www.wetware.com/drieux/pbl/perlTrick/OO/Object_in_Object.html So I too look forward to which is the issue set the OP

Re: passing datastructure from one.pl to other.pl

2004-01-05 Thread drieux
. The more complex way would be your basic pipe and exec trick say something like: http://www.wetware.com/drieux/pbl/Sys/gen_sym_big_dog.txt so you will need to be a bit more clear about whether it is really run time data - or the fact that both codes will need a common perl module that understands how

Re: Making A Library of Perl Subroutines

2004-01-04 Thread drieux
answer. I personally would start with perldoc h2xs since that will help frame out your perl module in a way that will allow you to install it either canonically like any other CPAN module - cf: http://www.wetware.com/drieux/CS/Proj/Wetware_ps/ index.html#id3154425254 for the perl 5.8.1 stype

Re: Hacks via Slow regular expressions

2004-01-02 Thread drieux
might want to take a look at the illustrative code provided from O'Reilly with the Mastering Regular Expressions, where it is trying to resolve for 'legitimate email address' as being one of the more complex problems. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: piped system commands

2003-12-31 Thread drieux
On Dec 31, 2003, at 9:04 AM, deb wrote: Drieux, Vladimir??? yes, named after vladimir ilyich, it is my Sparc Box. :-) Thanks for the hints. :-) Personally I would be doing it with something like http://www.wetware.com/drieux/CS/Proj/Wetware_ps/ Which of course first started out as http

Re: command line search and replace

2003-12-31 Thread drieux
there is both perl and ksh. ciao drieux -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Hi a question

2003-12-31 Thread drieux
: http://www.wetware.com/drieux/PR/blog2/Code/200312.html#id3155628391 in it I have references to two pieces of demonstration code that you might want to think about as tactics in this type of problem. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Cosolidate multiple regular expression

2003-12-30 Thread drieux
in the process. Logically the next line would do the remove of things like the \f and then we start worrying about the rest of the substitutions. I presume you have already peeked perldoc perlretut as well as picked up the book on mastering regular expressions. ciao drieux --- -- To unsubscribe

Re: make problem with xs file (Time::Object)

2003-12-30 Thread drieux
to the code that it will be creating 1,$s/init_tm/time_object_init_tm/g 1,$s/mini_mktime/time_object_mini_mktime/g and now your code will not have function names that will get into an argument. I have cc'd matt into this, in the hope that he may have a better fix. ciao drieux

  1   2   3   4   5   6   7   8   9   10   >