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: STATing large files

2004-03-11 Thread drieux
ck - and simply rebuilt the code with the "USE_LARGE_FILES" flag. 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: From Windows -> Linux

2004-03-19 Thread drieux
decide which CPAN modules you find more useful, since they will simplify your needing to build your own. Also look 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

Re: collecting data from a TL1 devices

2004-03-19 Thread drieux
select loop' approach 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]

Re: Process control from LAN master computer

2004-03-28 Thread drieux
f open FD's as info comes back, cf perldoc IO::Select and then as one needs to 'update' incoming information, 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
./stdio.plx past the line [jeeves: 28:] echo "Hello 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: [E

Re: Where do you put your modules?

2004-04-10 Thread drieux
it to use 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 --

Re: coding standards question and RFC

2004-04-19 Thread drieux
cess - it is a bonus. But you will probably find that spending time 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: [

Re: Interview Questions

2004-04-20 Thread drieux
roblem 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] F

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 w

Re: Recommended Readings

2004-04-25 Thread drieux
olks, "UN-NATURAL". First off all coding languages 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

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] <h

Re: Daemon configuration for Apache

2004-04-25 Thread drieux
s whether you will find the httpd.conf in say /etc/httpd/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

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

2004-04-25 Thread drieux
'but which 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 PROTE

Re: Can Perl be faster than C ?

2004-05-19 Thread drieux
it will be simpler" Whereas there is a lot 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 C

Re: Perl Class simple problem

2004-05-29 Thread drieux
my ($caller, %arg) = @_; my $conv = { x => '/usr/local/apache/htdocs/x', y => '/usr/local/apache/htdocs/y', z => '/usr/local/apache/htdocs/z' }; 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: Exception Handling - Professionally

2004-06-09 Thread drieux
;http://www.stonehenge.com/merlyn/PerlJournal/col12.html>, or you can get it from TPJ 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
of scripts using serveral 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: Exception Handling - Professionally

2004-06-09 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

Re: procfarm equivalent

2004-06-09 Thread drieux
hy are you 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>

about the Readme file for CPAN modules

2002-03-30 Thread drieux
too much writing. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Two Strategies for Delivering Modules - or why ppm et al

2002-03-31 Thread drieux
and how to uninstall them. At one facility we just 'home rolled' a solution in the 'build system' that outputted solaris packages - with all of the stock versioning in it so that people on the 'production network' could simply do pkginfo -l WARPplx and see if

More Speculation on LIB v. Site/Lib

2002-03-31 Thread drieux
ib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i86pc-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.005/i86pc-solaris /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl . or simply do [jeeves:~] drieux% per

A Switch Case for multi-state returns.

2002-03-31 Thread drieux
ly adds in one more switch statement it's the 'last SWITCH' part that breaks it out. The die is there fore the absurd case that while the @state list was updated - someone forgot to specify what to DO with that statement which of course would not happen we all know. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A Switch Case for multi-state returns.

2002-03-31 Thread drieux
>> ??- >> @state="MA CI DE IN OH"; let me try that another way - without the bugs: vladimir: 81:] perl Switch.pl MA CI bob OH Process Says: MA_response Process Says: CI_response we do not know about state bob Mr Wizard the stateField OH unguarded at Switch.pl line 41. vladimir: 82:] sed 's/^/##

Re: GD::Graph

2002-03-31 Thread drieux
d blow up with not being able to find chart.pm. so you would have wanted to do say use GD::Graph::bars ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: use of HTML::Parser, HTML::FormatText

2002-03-31 Thread drieux
s like you need to get a copy of nmake - or find a ppm for installing these where they belong. As for code illustrations, try: http://www.wetware.com/drieux/src/unix/perl/OK.UglyCode.txt an illustration of the full on wackaDoodle code, where I was working on an 'all singing, all dancing'

Re: A Switch Case for multi-state returns.

2002-04-01 Thread drieux
} = \&{$funName}; ### } else { ### print "No such function $funName\n"; ### } ###} ### ###%lookup; ### } ok, so the build_lookup() is a skank to simplify the typing. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI question

2002-04-01 Thread drieux
;,"$link" ; } } } else { # have no param of 'categorias' set. while ($file = ) { ($categoria,$link) = split(":",$file); print "$categoria"," ","$link" ; } } # end else no param ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: no output from the script

2002-04-01 Thread drieux
### $page .= end_html; ### ### print header, $page ; ### ### } #end send_page ### ### #- ### # ### ### my $theHtmlPage = get_firstPage; ### ### $theHtmlPage= append_table($theHtmlPage); ### ### send_page($theHtmlPage); ### ### ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

An Apology

2002-04-01 Thread drieux
my apologies for sending long code illustrations. in the future I will post them at: http://www.wetware.com/drieux/CS/lang/Perl/Beginners/ and post up a URL to them. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Array question

2002-04-01 Thread drieux
ttp://www.wetware.com/drieux/CS/lang/Perl/Beginners/array-prob.txt ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Increment a Variable

2002-04-01 Thread drieux
; this will generate your A1 .... THANKS I have been looking for one of those! ciao drieux --- ### #!/usr/bin/perl ### ### $x="A"; ### ### @list=qw/a b c d e f g h/; ### foreach $list (@list) { ### $cell = "${x}1"; ### print "$cell , $list\n&q

Re: calling another perl program and printing output in real time

2002-04-01 Thread drieux
http://www.wetware.com/drieux/CS/lang/Perl/Beginners/p1_read_p2.txt On Monday, April 1, 2002, at 02:49 , Roy Peters wrote: > Hello, > > I have 2 independent perl programs p1 and p2. p1 calls p2 (using either > the > system() or `` operators, and p2 will print > out status i

FQN'ing sub routine names

2002-04-02 Thread drieux
ou are taking... or use FOO::BAR qw/:baz :barbara/; which collection of subs you are taking Which keeps driving back to the 'naming standards' ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Better "tail -f"

2002-04-02 Thread drieux
oblem - then ran into it... used the p2 code from yesterday in p2>filename and it made: http://www.wetware.com/drieux/CS/lang/Perl/Beginners/file_change_while_tailing. txt act stoopid - till I put the spare subroutine into reset to begining.... ciao drieux --- -- To unsubscribe, e-mail: [

Re: Better "tail -f"

2002-04-02 Thread drieux
at 'tail' is looking at the old inode before the exterior process re-wrote the file try it at the command line in window a in window b tail -f file./p2 > file ./p2 >file You need to

OOOPSIE on tail -f

2002-04-02 Thread drieux
it is a size thing. if tail opened filename 'file' at size N then process p2 truncates it with p2 > file tail -f file has no output till file is > N it's not an inode thing... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROT

PerlMongers Really Are Like Seth!

2002-04-02 Thread drieux
You Is Or how many perlMongers can code on a project? ciao drieux --- myFascistHouseMate opposes putting 'Orthodox' and 'perl' in the same sentance. my formerUnterStumpenFumbler grok'd my need for 'Orthodox perl' and could offer "ONE"

Re: matching a [ in a regex

2002-04-02 Thread drieux
way in 'arbitrary time' when one comes back to 'maintain' it - You 'remember' that you set this up as a qr? this is a Keeper: > > $t = "target["; > if($line =~ /\Q$t\E/){ > thanks! I never 'got it' when reading the manual... ci

HTML whine

2002-04-02 Thread drieux
that we get in the habit of making kosher - the better. Try to remember that others may have to write the webBot to parse your html. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: FW: Time arithmetics...

2002-04-02 Thread drieux
priorities . chill ciao drieux --- maybe I shouldn't have switched to decaf... I Mean, like that new standard to shift all tcp/ip packets to an XML format is like, wow the colours -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl equivalent

2002-04-02 Thread drieux
On Tuesday, April 2, 2002, at 04:39 , Anand, Pankaj wrote: > I need a small help . nothing untoward - you might like: http://www.wetware.com/drieux/CS/lang/shellScript/ [..] I'll not try to be TOO harsh about some of what you could have done to make that /bin/sh script less, well.

Re: HTML whine

2002-04-02 Thread drieux
e 'closure conscious' but we clearly agree, there are some standards, not quite as many standards for HTML as there are for perl. where the forces of Evil war against the Good daily ciao drieux --- ps: the devil made me write that. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI.pm & PPM

2002-04-02 Thread drieux
ll you? I just download the source and build it. sorry... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: getting several files into a single array

2002-04-03 Thread drieux
> "file1.txt") and so on] and then put each into an > array, then push those onto @lines, but it seems like > there should be an easier way. never send an array to do a hash-ize's job... %fileHash = ( $file1 => $fh1, ); ciao drieux ---

Re: Opening a datafile

2002-04-03 Thread drieux
nks, > > Allison ### #!/usr/bin/perl ### ### use strict; ### ### my $dir ='.'; ### my $suffix = '.txt'; ### opendir(THEDIR, $dir) or die "unable to read $dir:$!"; ### my @allfiles = grep { $_ =~ /$suffix/ } readdir THEDIR; ### closedir THEDIR ; ### ### ### print "

Re: write file in cgi file

2002-04-03 Thread drieux
ed your cgi to save files to the cgi-bin directory by anyone out there - your site would run out of disk as the skript kiddies used it to pass pilfered skripts around.... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Use of unitialized value error.

2002-04-03 Thread drieux
put file greater than random numbers\n" # if( $array_pos >= $MAX_RAND); } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Opening a datafile

2002-04-03 Thread drieux
On Wednesday, April 3, 2002, at 01:43 , John W. Krahn wrote: > Drieux wrote: >> >> On Wednesday, April 3, 2002, at 01:09 , Allison Ogle wrote: >> [..] >>> However, if I didn't know the name of the datafile how would I open it? >>> I >>> tr

upgrade to at least 5.6.1 was Re: PERL Modules

2002-04-04 Thread drieux
have to give up on perl4.035 ??? 8-) p3: perl wasn't really stable till 5.00503 - but that version got 'removed' because I was installing it with a solaris package and the pkgrm removed everything it installed ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl executable

2002-04-04 Thread drieux
our basic modules in 'deliverable' packages - and then add some glue to have your tk and just perl executables wrapped into the -.tar.gz single deliverable. just an alternative strategy to consider. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: converting html to text

2002-04-04 Thread drieux
On Thursday, April 4, 2002, at 12:12 , tom poe wrote: [..] >> >> That's what the search engine is for >> >> http://search.cpan.org/search?dist=HTML-Format >> >> e. worth remembering is also that this will require the Font-AFM distribution. ciao drieux

Re: converting html to text

2002-04-05 Thread drieux
rse($html_text); ### my $plain_text = HTML::FormatText->new->format($tree); ### ### print "$plain_text\n"; ### because it was not able to find the parse_html. is that in some other Version??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

how to get version values from other code?

2002-04-05 Thread drieux
; print \$$verToken ; \'\n" ; ### system( $cmd); ### print "\n"; ### } Since that works, even though it requires the 'system()' call I should just 'live with it' - or is there a more Orthodox Perlie way that I could/should do this? ciao drieux --- "I s

Re: use of HTML::Parser, HTML::FormatText

2002-04-05 Thread drieux
he 'tree' open and parse them. I'd also use $tree->dump; if all you want is to see how the tree falls out. cf: perldoc HTML::TreeBuilder ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: rlogin

2002-04-05 Thread drieux
and best if it is in the same place. One trick of course is to have it in a commonly mounted file system p3: in http://www.wetware.com/drieux/src/unix/perl/OK.UglyCode.txt look at the dtk_cmd_line function for a way to do the 'system' style invokation of ssh2 - and it expects to find

Re: how to get version values from other code?

2002-04-05 Thread drieux
uses File::Basename - 2.6 uses HTML::TreeBuilder - 3.11 uses LWP::UserAgent - 2.001 uses SelfLoader - 1.0902 uses Sys::Hostname - 1.1 uses URI - 1.18 uses vars - Ok, that way I can also say what I know it worked with when I saw it last...

Re: Send binary via socket connection

2002-04-05 Thread drieux
mp; } approach to reading from a handle. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: :Socket need help

2002-04-05 Thread drieux
our worst threat here is that someone inside of your own 'NAT' "group" will mis use your code. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: system "cd .. "; ??

2002-04-05 Thread drieux
man@aman /usr/home]$ remember the command that you invoke here is running in a sub shell of the login 'command line' shell ... eg: [ /usr/home/bob ]$ cd .. [ /usr/home/ ]$ whereas invoking it in a sub shell ala [jeeves:~] drieux% /bin/sh -c 'cd

Re: Net::FTP

2002-04-05 Thread drieux
eafname as "LOCAL_FILE". so why not try it! Let us know. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Net::FTP

2002-04-05 Thread drieux
information from the shell output? sounds like you might just find it easier to dump it to a temp file from $data and upload it the old fashion way. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Function Calls are Slower - was Re: Print Question

2002-04-05 Thread drieux
On Friday, April 5, 2002, at 02:51 , Jonathan E. Paton wrote: > Function calls in Perl are > dead slow compared to compiled languages. Ok, so why is this? will this get 'fixed' in p6? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Simple, Quick Syntax Question

2002-04-05 Thread drieux
> Subject => $subject, > Message => > "$top_note\n" . > '-' x 72 . > "\n$message\n" . > '-' x 72 . > "\n$bot_note" > ) ^ ---| ); don't we

Re: Can Unlink Remove Tar and Zip files?

2002-04-05 Thread drieux
listed in perldoc -f unlink ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: converting html to text

2002-04-06 Thread drieux
ML::TreeBuilder; my $html_text; my $filename = $ARGV[0]; open(FH, $filename) or die "unable to open file $filename :$!\n"; while () { $html_text .= $_ ; } ###my $plain_text = HTML::FormatText->new->format(parse_html($html_text)); my $tree = HTML::TreeBuilder->new->parse($html_text

Re: perl-modules

2002-04-06 Thread drieux
/usr/lib/perl5/5.6.0 at all, which is where your previously installed packages are plan A: rebuild perl to be 5.6.0 aware plan B: PERLLIB=/usr/lib/perl5/5.6.0:/usr/lib/perl5/site_perl/5.6.0 export PERLLIB ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: perl-modules

2002-04-06 Thread drieux
ird course is to do the perl -MCPAN -e 'install ' after you figure out what you want to download... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to refresh browser

2002-04-07 Thread drieux
to how to set the expiry time on the webPage, and then how to check whether or not the page the user is asking for is still 'fresh'. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Scope of variables. Lost in subs

2002-04-08 Thread drieux
eeded to specifically do my $ref = $_[0]; ... ${$ref} = $subvar ; cf: http://www.wetware.com/drieux/CS/lang/Perl/Beginners/sub_ref.txt which generates starting Var is :The String Value: SUB: $subvar is now :The String Value:. SUB: $var is now :The String Val

Re: Scope of variables. Lost in subs

2002-04-09 Thread drieux
sn't Perl Dangerous Like that. { actually I did that module without KNOWING that it was an OO solution when I started... } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

use of package in a script

2002-04-09 Thread drieux
ddle of an application code - maybe its time to review the core design??? Alternatively, remember frany freaks old maxim: If you roll one that big, toke and pass to the right don't bogart that joint. ciao drieux --- kids these days, no respect for the

Re: use of package in a script

2002-04-10 Thread drieux
On Wednesday, April 10, 2002, at 07:27 , Jenda Krynicky wrote: > From: drieux <[EMAIL PROTECTED]> [..] >> if the package assertion makes sense here >> then this should be a Module >>hence start with h2xs > > Well ... imagine you need som

Re: use of package in a script

2002-04-10 Thread drieux
Jenda, On Wednesday, April 10, 2002, at 07:27 , Jenda Krynicky wrote: > From: drieux <[EMAIL PROTECTED]> >> Unless someone can come up with a really HOT idea as to why one >> would want to put a 'package declaration' in an application - [..] >

Re: Variables and Modules

2002-04-10 Thread drieux
quot;${var}2"; at which point $var2 has the string 'me2' without the curlies and quotes it would have the bare word problem or worse... be simply self referential: my $var2 = $var2 ; Some coders are MORE PARANOID than others ciao drieux --- -- To unsubscribe,

Re: Opening another script and changing variables

2002-04-10 Thread drieux
ed' should be 'sourced' into the executable and then reset, adjusted etc as the run time requires, eh no??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: use of package in a script

2002-04-11 Thread drieux
how to help them grow the 'wisdom' (???) to see how to start 'that little script' with an eye on which bits will get cut out as the supporting perl module 'functions/methods' So that they are ready for the second, third, fourth, script that will re-use the

Re: Ip address

2002-04-11 Thread drieux
; which of course would have required that this 'package' have a 'use FOO::BAR;' line in it ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Use of uninitialized value in concatenation (.)

2002-04-11 Thread drieux
re 'fixing' the print statement with something on the order of: my $msg = "$trd Driver ID:"; if (defined($columns[19])) {# with explanation why 19... $msg .= "$columns[19] -- $drvname"; } else { $msg .=

Re: while and do

2002-04-11 Thread drieux
to do with the STDIN stuff } or my all time basic while ( my ( $key, $val ) = each %someHash ) { # based upon key or val do the stuff for all elements of the hash } in the main I do not do 'do' things... ciao drieux --- -- To unsubscribe

Re: Problem with replacing text in a variable...

2002-04-12 Thread drieux
in a line read cycle while() { chomp; $rvar=$_; # do stuff with this line of input from STDIN } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing Arguments into a Program

2002-04-12 Thread drieux
gument parsing. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Preview data

2002-04-12 Thread drieux
the inner perl stuff meant that I could write 'perl syntax' pattern matching eg: search for "Andy R" or Andy\s*R ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: splitting / regex / trend etc

2002-04-12 Thread drieux
On Friday, April 12, 2002, at 03:56 , Mark. wrote: > apples, melon, oranges, pears, coconut, lemons, grapefruit > 4, 3, 2, 7, 1, 4, 0 > 3, 1, 4, 4, 0, 0, 1 > 0, 4, 0, 0, 4, 5, 0 http://www.wetware.com/drieux/CS/lang/Perl/Beginners/FruitPickFromCVS.txt offers an illustration ab

Re: Syntax def required

2002-04-12 Thread drieux
shown to be an 'object' of FOO::BAR then we should be able to find the perldoc of that class - assuming that the perlGeek did the POD ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Preview data

2002-04-12 Thread drieux
On Friday, April 12, 2002, at 07:15 , Kris G Findlay wrote: > ok exact problem !! > > Example data inputed via form : > 'here is a quote "this Quote".' # which is passes to variable > $document > > if i use hidden fields in a html form to store these variables while the > page displays a p

Re: Preview data

2002-04-12 Thread drieux
;crap', -value => $hiddenField); so there appears to be a double evaluation that would occur going this way - vice a straight shot of how yours went: ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Preview data

2002-04-12 Thread drieux
ml .= allows me to be more flexible so that I can 'dump out' the page at different stages as I try to figure out what this or that Module gives me as 'features' for doing CGI/mod_perl stuff ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Need help grabbing program output.

2002-04-12 Thread drieux
uld get set that would return the exit code of running $selection... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Preview data

2002-04-12 Thread drieux
the "This Quote" in the hidden field, there is now the problem of decode_entities perchance more than once??? original input: "This Quote" saved as hidden: $quot;This Quote$quot; so the $hiddenValue = param('hiddenValue'); would return it as

One Print, One WebPage was Re: Preview data

2002-04-12 Thread drieux
cally obliged to maintain code that was not started this way I stole this trick from some CGI stuff from '99 () and just thought it made much better sense. Not sure I agree with you about building tables by hand But I am sure your experience offers you the case work to recommend

foreach v. c-style for loop was Re: Fidning the index of an array

2002-04-12 Thread drieux
er approach is to use a C-style for-loop. Is there any given advantage of one over the other in terms of performance and/or maintainability? the two stalking horses of my life. and these over print "index -> " . $counter++ . " element -> $_\n" for (@array); ciao

Re: pattern match

2002-04-12 Thread drieux
moment that you decided that all of the 'messages' have to be 'preserved' that things get messy using the 'm?' side annotation I put up, message m1 would need to get out of the data stream m1: lA , m2, LG and we then have to parse out of m2 it's info

Re: Input | Program | Output : help

2002-04-13 Thread drieux
rldoc ipc http://www.kohala.com/start/unpv22e/unpv22e.html is where you can find the 'Source code' download Happy Hunting! ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Scope of my() declared variables WAS( Re: -e $filename...)

2002-04-13 Thread drieux
ed before they are used in the main loop and hopefully they do not need get interwoven too badly. This way when You notice that only the main changes - it's clearly obvious that you should just Whip Out the h2xs - make a module of it all - and shorten up your 'scripts' ciao drieu

evolve into tie/dbm was Re: splitting / regex / trend etc

2002-04-15 Thread drieux
grapefruit >>> 4, 3, 2, 7, 1, 4, 0 >>> 3, 1, 4, 4, 0, 0, 1 >>> 0, 4, 0, 0, 4, 5, 0 >> >> http://www.wetware.com/drieux/CS/lang/Perl/Beginners/FruitPickFromCVS.txt >> >> offers an illustration about how this problem can be solved. cia drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perlcc "the system cannot find the file specified". ??

2002-04-15 Thread drieux
s not clear to me that the perlcc is not generating "foo.c" files as intermediary steps enroute to the actual compile. you might try the '-v' flag perlcc -v -o hello hello.pl to see if this would work As the doc says, this should be treated as 'highly

Re: How to do a cron job?

2002-04-15 Thread drieux
o edit your crontab file and put in your iterator like above. 0 3 * * * MyCoolScript and it will run at 3am each day So we are back to the problem - why are you in a 'sleep' cycle in your script? Is it a matter that it needs to be continuosly running? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cygwining off Re: perlcc - newbie - cannot compile successfully - sample sessio n

2002-04-15 Thread drieux
running the perl stuff in Cygwin??? such as known gotcha's about CPAN perl modules and the like ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   3   4   5   6   7   8   9   10   >