Excel spreadsheet: creating charts

2003-03-12 Thread Richard Fernandez
We have a manual process in place to create Excel worksheets that contain bar charts. I'm trying to automate this process using perl. The problem is that I don't know how to access the underlying formulas, in Excel, that generate the charts. Our current process is as follows: 1) Generate a space s

RE: upgrading perl

2003-02-13 Thread Richard Fernandez
inks to point to the old modules? Or is there more to it than that? Thanks again! -Original Message- From: Richard Fernandez [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:26 AM To: [EMAIL PROTECTED] Subject: upgrading perl I have a box that's running perl version

upgrading perl

2003-02-13 Thread Richard Fernandez
I have a box that's running perl version 5.005_03 and I'ld like to upgrade to the latest version. What's the best way to accomplish this and maintain access to my currently installed modules? I'm doing this on a SUN box. Also, this particular box is behind a firewall and doesn't have internet con

Replacing a string in a bunch of files

2003-01-31 Thread Richard Fernandez
I just had a situation where I needed to replace one string with another string in 200 files. This is what I came up with, but I know there has to be a better way. Below is my code. "myfiles" contains a list of the files I need to scrub, one per line. ---8<-8<-

How do you code a "tail -f" if you're using Net::Rsh?

2003-01-22 Thread Richard Fernandez
There's a FAQ that deals with coding a "tail -f" if you're logfile is on the same box as the perl script. But what if you want to use rsh to tail a file remotely? Here's what I have: --8<---8<--- #!/u

How Perl Powers Christmas

2002-12-20 Thread Richard A. Nakroshis
If you haven't seen it yet, O'Reilly has a wonderful tongue-in-cheek article titled "How Perl Powers Christmas". http://www.perl.com/pub/a/2002/12/18/hohoho.html Rick -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

perl CPAN modules

2002-08-16 Thread Pfeiffer, Richard
Good Evening, Wondering what list I should send a question to regarding CPAN modules, in particular, the intitial config file. Ignore the rest of this lengthy diatribe if this is not the correct list. :) When I loaded my first module, actually a bundle, I used: perl -MCPAN -e 'install "Bundl

Command line Password

2002-07-25 Thread Richard Lowe
Hi, I'm trying to read in a password from the command prompt, but want to either mask the typed characters with the '*' character, or 'disconnect' the input from the screen so the characters don't appear at all, but the input is still captured. The systems I'm using are Win32, and I'd rather not

Re: Dear answerers - sorry

2002-06-25 Thread Richard Adams
Sorry to have incensed many of you with what was a genuine oversight in omitting a subject. Richard > Jenda, et al -- > > ...and then Jenda Krynicky said... > % > ... > % I would like to ask all the people who invest their time and answer > % the questions in this lis

Thanks

2002-06-25 Thread Richard Adams
Thanks, that's a neat trick - I hadn't realised you could still capture things from within a lookahead. Richard > On Jun 24, Richard Adams said: > >> @peptides = $sequence =~ /(\w{4}S\w{4})/g; >> >> this works up to a point, but if there are 2 adjacent 

beginners@perl.org

2002-06-24 Thread Richard Adams
't extract DFRSSSGHY above. . Is it possible to try the next match from within the previous match to remedy this? Thanks for any tips or flashes of inspiration, Richard -- Dr Richard Adams University of Edinburgh Kings Buildings, Mayfield Rd, Edinburgh Email [EMAIL PROTECTED] -- To

Re: Use of our

2002-06-04 Thread Richard Adams
Many thanks, The fog has lifted and all has become clear... Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Use of our

2002-06-04 Thread Richard Adams
ng it within a block of the current package? Any help in clearing the fog from my brain greatly appreciated... -- Richard Adams University of Edinburgh Kings Buildings, Mayfield Rd, Edinburgh EH9 3JR UK Email [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problems with perl.beginners.cgi?

2002-05-30 Thread Richard Krause
Hi all Is there something wrong with perl.beginners.cgi? No new postings since 28th may and I posted hours ago and my message isn't showing up. Is there a adress to report this to? Regards Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Referring to a cgi script within a cgi script.

2002-05-28 Thread Richard J. Moyer III
es for this email). You can see that on line 56 I want to pass the values to the new reprint.cgi. That is where I'm having problems. They won't pass. I would appreciate any help anyone can give. Richard J. Moyer III [EMAIL PROTECTED] 01 #!/usr/bin/perl 02 03 print "C

RE: String with no contents and length of 21

2002-05-14 Thread Crook, Richard W
try die $returned; just before the other code and you'll probably find nothing is being passed to $returned -Original Message- From: Craig Moynes/Markham/IBM [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:30 PM To: [EMAIL PROTECTED] Subject: String with no contents and length o

html tag hide

2002-05-07 Thread Buskirk, Richard Mr USAREC
&produce_error( I tried writing this is the data.pl $DATA_file="data.pl"; Is there a way i can hide it in the CGI that writes the Html form page or what ??? HELP Richard L. Buskirk Software Developer/Web Developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: lynx

2002-05-07 Thread Buskirk, Richard Mr USAREC
You better get started building then! Richard L. Buskirk Software Developer/Web Developer -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: lynx > I need an example on how I can script lynx

Re: Ok- real dumb question

2002-05-07 Thread Richard Adams
ails, 3, 1; #get rid of unwanted middle name field } push @list, [@details]; #make array of arrays. } foreach (@list) { foreach (@$_) { print "$_:" } print "\n"; } -- Dr Richard Adams Chromosome S

Re: Sorting problem-part2

2002-05-06 Thread Richard Adams
and then sort the "array of hash maxima" separately, while maintaining the key/value associations? Thanks a lot for any suggestions! Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sorting problem

2002-05-06 Thread Richard Adams
Thanks for all your help...I just forgot the sort in my post... The reason it wasn't working wasn't the sort, it was just that $AoA[0] was undefined.. But sort {$a->[2] <=> $b->[2]} @AoA[1..$#AoA] works just fine. Thanks again! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Sorting problem

2002-05-06 Thread Richard Adams
hould look like: 1: 87 2: 23 3: 12.4 I've tried @sorted = {$a ->[2] <=> $b ->[2]} @AoA but this gives a "cannot modify.."error. I've a feeling this is really trivial but have got abit bogged down with it... Thanks in advance Ric

accessing -lable value in cascade widget

2002-04-29 Thread richard noel fell
Below is some sample code which I hope will illustrate the problem I am facing. #!/usr/local/ActivePerl-5.6/bin/perl5.6.1 -w use Tk; use Tk::Dialog; use strict; ## my $mw = MainWindow->new; use subs qw/file_menuitem/; $mw->configure(-menu=>my $menu

Selftuition

2002-04-29 Thread Richard Adams
. Also I find the exercises in the deitel book for C very useful for getting the syntax firmly learned. This is my first post so hope it's suitable, -- Dr Richard Adams University of Edinburgh Kings Buildings, Mayfield Rd, Edinburgh Email [EMAIL PROTECTED] <http://www.ed.ac.uk/~rradams/pas

Re: assigning array to hash

2002-04-26 Thread richard noel fell
ng special. To dump a > > hash, do something like: > > > > for (keys %hash) { > > print "$_ => $hash{$_}\n"; > > } > > we of course presume that Richard already remembers two > small niggline details: > > ### while ( ) > ###

Re: assigning array to hash

2002-04-26 Thread richard noel fell
f 'japhy' Pinyan wrote: > > > The hash is not empty -- printing "%foo" does nothing special. To dump a > > hash, do something like: > > > > for (keys %hash) { > > print "$_ => $hash{$_}\n"; > > } > > we of course

Re: assigning array to hash

2002-04-26 Thread richard noel fell
Jeff - Thanks for your reply. Now, on to solve the remaining problems. Dick Fell Jeff 'Japhy' Pinyan wrote: > > On Apr 26, richard noel fell said: > > >Below is part of some code that reads from a file to an array and then > >attempts to assign

assigning array to hash

2002-04-26 Thread richard noel fell
Below is part of some code that reads from a file to an array and then attempts to assign the array to a hash. I get no compiling errors, but %label_hash is empty. No doubt I am being stupid. Has anyone a suggestion how to fill the hash variable? Thanks, Dick Fell open LABEL_FILE, "$cur

Re: variable not set as expected

2002-04-23 Thread richard noel fell
Nikola - An interesting point. Perhaps you are onto something, but an eval where you suggested does not work. However, you comments lead me to other ideas to try. Thanks, Dick Nikola Janceski wrote: > > I can't make sense of the code. Sorry, but this is what I see looking back.. > > [

Re: variable not set as expected

2002-04-23 Thread richard noel fell
$test_path\n";}]} @test_files]; } } } Nikola Janceski wrote: > > how are using this subroutine in your code? > > Can you give us the line where you use this sub, Tk is bit picky at times > when you try funky things. > > > -Origina

Re: variable not set as expected

2002-04-23 Thread richard noel fell
return > only the file names, not the full paths, so "grep {-f "$tests_directory/$_"} > readdir TESTS_DIR;" might not be returning anything. But then again I'm not > a huge grep user, so I could be wrong. > > -Original Message- > From: richard n

variable not set as expected

2002-04-23 Thread richard noel fell
Below is a subroutine that is part of a perl/Tk script. The variable $test_path is initialized earlier to the empty string and the variable $tests_directory is likewise initialized to the correct directory. The array @test_files contains entries such as (test1, test2, ..) and is correctly set by

Re: how to return an array reference from a subroutine

2002-04-18 Thread richard noel fell
Felix - Thanks for the very clear explanation. Dick Felix Geerinckx wrote: > > on Thu, 18 Apr 2002 12:56:43 GMT, [EMAIL PROTECTED] (Richard Noel Fell) > wrote: > > > However, I do not understand your > > comments about the return value of map. Does not map r

Re: how to return an array reference from a subroutine

2002-04-18 Thread richard noel fell
gt; On Wednesday, April 17, 2002, at 02:09 , richard noel fell wrote: > [..] > > sub create_menu_bar > > { > > my $mb = $MW->Menu(); > > $MW->configure(-menu=>$mb); > > opendir DIR, "./" or die " cannot open current directory: $!"

how to return an array reference from a subroutine

2002-04-17 Thread richard noel fell
What I am attempting to do is write a perl script that reads the sub-directories of the current directory, creates a menu bar with the sub-directories as the titles of cascade widgets and then goes into the sub-directories, read the files there and creates command widgets with the file names as t

how to make local variable retain value

2002-04-16 Thread richard noel fell
If in a subroutine, I have a statements sub { my $local_var=1 $local_var=$local_var+1; } then the next time I run this subroutine, $local_var is reinitialized to 1. However, I would like to have it retain its value from the previous call to the subroutine. For example, if $local_var

Re: max/min

2002-04-12 Thread Richard J. Barbalace
likely faster than repeating a O(n) foreach multiple times. (You could modify the foreach to return multiple values upon iterating the list once, but that would sacrifice significant clarity.) + Richard J. Barbalace -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem with directory listing

2002-04-11 Thread richard noel fell
John - Thank you for your explanation. A stupid mistake on my part. Dick Fell John Edwards wrote: > > Sorry. That should have been prepend. > > -Original Message- > From: John Edwards [mailto:[EMAIL PROTECTED]] > Sent: 11 April 2002 12:47 > To: '

problem with directory listing

2002-04-11 Thread richard noel fell
Below is sample code that does not work as I intend, the intention being to list all the sub-directories in a given directory. #!/usr/local/ActivePerl-5.6/bin/perl5.6.1 -w use strict; my $mw; my $menubar; my $algebra; my @file_array; my $dir_to_process = "/home/rfell/mathprogram"; opendir DH, $

Date Handling

2002-04-09 Thread Schroeter, Richard
Greetings, I am having a problem with Perl providing me the correct date when I subtract 86400 from the date. This is only happening when I set the computer's system's date to today's date. If I set the system's date to tomorrows date or yesterday's date it works fine. My code is: $TIME = time

FW: Time arithmetics...

2002-04-02 Thread Richard Smith
This is a problem for us historians. I would hope that perl designers, among others, are thinking about wide date ranges... Thanx, Smiddy ( About that log message from AD 61, ... ) -Original Message- From: Michael Kelly [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 11:42 AM

Re: why can't I write to a file

2002-03-29 Thread richard noel fell
Jenda - Thank you for you very clear explanation. Dick Fell Jenda Krynicky wrote: > > From: richard noel fell <[EMAIL PROTECTED]> > > > Here is an abridged version of what I am trying to do which is: > > 1) write to a file in one subroutin

why can't I write to a file

2002-03-29 Thread richard noel fell
Here is an abridged version of what I am trying to do which is: 1) write to a file in one subroutine 2) write the contents of the original file to another file in a separate subroutine. However, I get the error message: Use of uninitialized value in string at ./scratch2.pl line 24, line 1. Us

RE: Connecting to DB

2002-03-28 Thread Crook, Richard W
Looks like you need to declare my $dbh, my $action, my $passwd up where you've declared the others or just turn off strict. To debug your database statement try: die $action to see what the script is sending to the database -Original Message- From: Michael Gargiullo [mailto:[EMAIL PROTEC

Question about writing to file

2002-03-28 Thread richard noel fell
Here is a subroutine that prints strings to a file. I want the routine to write strings to the file in the format Question1:factor(x^2+4*x+3)=(x+3)*(x+1). However, what is written to file is Question1:factor(x^2+4*x+3) =(x+3)*(x+1), that is, a newline before the = sign. Is there some way of inhib

FW: How to thread in Perl?

2002-03-27 Thread Richard Smith
Actually, it is a *NIX thing. There are non-blocking ways to reap children, at least in most modern *NIX systems. You probably also want to look at the documentation for the wait() function. It may explain why your experiment appeared to work. Anybody know how to do non-blocking waits in p

newbie question about subroutines

2002-03-26 Thread Richard Wood
I have this script that checks processes on aix box. My question is within the subroutine. If the process is not running the return code is 256. How do prevent it from sending multiple alerts to a pager? What I want it do is send 1 page at a time for multiple events. Piece of my script: $tel

RE: Can I set this as a hash?

2002-03-25 Thread Crook, Richard W
Well from a beginner's point of view, plus the KISS priciple I'd say you should keep your data in a database like MySQL. You would then organize the data by: USERNAME FULLNAME COMPANY OWING username1 fullname1 company1 owing1 username2 fullname2 company2 owing2 Where you access the d

RE: joining 2 strings

2002-03-22 Thread Crook, Richard W
Heh heh! That's OK. Just buy us all a round at some pub when we go across the pond! -Original Message- From: Matthew Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 4:34 PM To: Michael Fowler Cc: [EMAIL PROTECTED] Subject: Re: joining 2 strings after all this, it was a

RE: joining 2 strings

2002-03-22 Thread Crook, Richard W
This may not be it but did you check the database to see what info is being passed to $record = $results[0]; or you can check the HTML page that $word = param("word"); gets its info from? -Original Message- From: Matthew Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 4:0

RE: joining 2 strings

2002-03-22 Thread Crook, Richard W
Looks like eiter $record or $word is a scalar where perl is looking for an operand. try: die $record; or die $word to see what the data is. You can only use the "." to concatenate strings. -Original Message- From: Matthew Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 20

RE: joining 2 strings

2002-03-22 Thread Crook, Richard W
This program worked for me: #!/usr/bin/perl $stringa = "apple"; $stringb = "banana"; $stringc = $stringa . "," . $stringb; print "$stringc\n"; -Original Message- From: Matthew Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: join

RE: Regex peculiarity

2002-03-21 Thread Crook, Richard W
I'm not clear on what you're trying to match for. Is it: Exactly one digit, followed by exactly any two characters, followed by zero or more digits? -Original Message- From: David Gray [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: Regex

MIME::Lite Query

2002-03-20 Thread Mace, Richard
et a valid date here) $msg = new MIME::Lite From=> $from, To => $to, Date=> $date, etc Does anybody know the rules regarding the date field and what it expects. I cannot find the key info I require on CPAN. Any info greatly rece

RE: nice, perl, fork and exec

2002-03-19 Thread Richard Smith
In *nix, he child process inherits the nice value of the parent process, and, unless the process owner is the super-user, the child process cannot be given a higher priority. This would also apply to calls to system() and backticks, since they all basically use the same mechanism. It also ap

regular expressions in rindex function

2002-03-18 Thread Richard Pfeiffer
Good Afternoon, Wondering if anyone could help me with this or enlighten me on another way to go about it. I have a string that has various white space (tabs, spaces, etc) at the end of it. I want to find the last real char [0-9a-zA-Z] and then use chop or chomp to remove the whitespace. I've

How long can $_ be?

2002-03-14 Thread Richard Smith
My Perl doesn't know what strlen is. Is it part of a module? Oops. Don't get your perl mixed up with your C, Smiddy. I meant length($_) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FW: How long can $_ be?

2002-03-13 Thread Richard Smith
Hi Folks, This got me wondering. Is the behavior you see caused by limitations for $_, or by limitations of the print function? You might try: print strlen( $_ ), "\n"; Thanks, Smiddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

help with perl/Tk

2002-03-07 Thread richard noel fell
Below is a simple script which I am using as part of my attempt to learn how to program a gui with perl and Tk. I have copied the program from a book, "Cross Platform Perl" (not very good, but some isolated good parts), but get the following error message when I try to compile the program. Has any

reading one character at a time

2002-03-04 Thread richard noel fell
Is there a perl function that reads one character at a time from a string and and returns that character? Something like the following: $Line = some string; foreach ($Line){ $char=read_char($_);} Thanks, Dick Fell -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

pattern matching question

2002-02-28 Thread richard noel fell
I have the following bit of code: #!/usr/bin/perl -w open In2,"/home/rfell/tutoring/beaven/webproject/tmp/maxima_log" or die "Cannot open maxima_log:$!"; my $Line; while (defined($Line=)){ if($Line=~/(\(D\d+\))\s*(\w*)/){ print "==> $2\n"; }; }; #close In2; maxima_log is the following GCL (

RE: sort order of hash keys

2002-02-26 Thread Richard Smith
Try the fields module. This sounds like an ideal place to use a pseudo-hash Thanx, Smiddy .. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Sockets in an array

2002-02-25 Thread Richard Smith
Hi Jenda, I have had problems using "my" when refering to File Handles, especially when I wish to pass them to subroutines. I have also had problems declaring them with $ or @, and have been forced to use: local *logHandle; Is this because I am declaring the actual filehandle, and not a refer

RE: Sockets in an array

2002-02-25 Thread Richard Smith
> $newsocket[$i] = IO::Socket::INET->new("$address") or die $@; How are you declaring "newsocket"? I would probably decare it as "local" rather than as "my". Worth a try anyway. Unfortunately I can't try it here. Thanks, Smiddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

im a beginner using perl

2002-02-19 Thread Wood, Richard
=$?; &logmesg("$telreturn","Urgent telalertd process (on $host) indicates the process is down"); ##2) check other ars process if (telreturn != 1) { } elsif (telreturn == 1) { Thanks, Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: Caching Large Data Structures To Disk

2002-02-15 Thread Richard Smith
Hi Jess, Tied variables might work, but I was also browsing CPAN this afternoon, and I noticed that there is a whole SAS module under "Commercial Software". I have no idea what it does, but you might find it interesting to look at. Thanx, Smiddy -- To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: Help me out

2002-02-14 Thread Richard Crawford
IL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > To unsubscri

RE: Parsing a .csv file

2002-02-12 Thread Richard Smith
You might try splitting on quotes first., e.g. my @quotes_array = spilt /"/, $input; my @final_array; # Array members with odd idices will be quoted strings, split others on comma. for ( my $index = 0; $index < @quotes; $index++ ) { if ( $ind

flock() failure - possible Perl compile problem?

2002-02-08 Thread Richard Smith
Hi Folks, I posted this awhile back, but then had problems with my mailer and saw no responses. I have also attempted to clarify the froblem. When I run the following program under Linux ( Red Hat 7.1, Perl 5.6.0 ) it works fine. If I run the program under Solaris, it fails with "Bad File Numbe

@ARGV and getopts

2002-02-08 Thread Pfeiffer, Richard
Good Morning, I have what I think is a trick question and is causing me a bit of trouble: My command line looks similar to this: command.pl-r"z:\Tech Team" -p"/Tools Team" -f"File Found Today.txt" -v"RDP 1.2_A" What I'm trying to check for is to make sure when people run my script, the

STDERR to a file

2002-02-04 Thread Pfeiffer, Richard
Hello, Trying to get STDERR to not print to the screen but rather to a file, or better yet, an array. Easy to do in UNIX (because I know how, of course): vcs -v >file.out 2>&1 but how would I do it in Perl? I've tried a few variations of: print ... but seem to keep hitting dead ends.

Re: Get IP address from ifconfig

2002-02-01 Thread Richard Balfour
Hi Chris, Thanks for the tip. My script works like a charm now! Cheers, Richard On Fri, 1 Feb 2002, Chris Weyn wrote: > Richard, > > the bash shell script I used to do that was the following: > > /sbin/ifconfig eth0 |grep inet |cut -d ' ' -f12 | cut -d ':&#x

simple commenting question ...

2002-02-01 Thread Pfeiffer, Richard
Can I comment an entire block of code with comments at just the beginning and end of the block instead of having to put a # at the beginning of each line? If so, what is the symbol? Thank You! -Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Grab IP and send email notification

2002-01-31 Thread Richard Balfour
I'm looking for a way to grab just the IP address from an ifconfig command then send that variable out to an email address via a sendmail process. Does anyone have any ideas how to write this little script? Thanks, Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

perk-tk.rpm

2002-01-22 Thread richard noel fell
I have been unable to find a source for the tk module. My google searches have been fruitless. Does anyone have a pointer to a tk.rpm for redhat linux 7.1? Thanks, Dick Fell -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Running scripts within browsers

2002-01-20 Thread Richard Crawford
server, which supports cgi. > > Naveen Parmar wrote: > >> Hello, >> >> My activeperl installation was fine. When I try to run my example Perl >> scripts within IE, the browser does not even recognize them?? >> >> Any ideas??? >> >> - NP

Re: Perl code - Coverage

2002-01-17 Thread Richard J. Barbalace
past year, so you might ask the author if he has a newer version, or is working on one. + Richard J. Barbalace Cambridge, MA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Searching for a book...

2002-01-07 Thread Richard S. Crawford
f the book holds them they must > be very detailed. I'm oriented in programming net stuffs with perl. > Thanks in advance. > > >best regards, > >sofit Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROT

Re: Resume after die?

2002-01-04 Thread Richard J. Barbalace
without inserting a label or using a goto? Assume the code that might trigger the error (the eval block or equivalent) is given to me. > P.S.: You come from VB? "On Error Resume Next", "On Error > Goto errHandler" and "Resume Next" ... I've never got used to

Re: Resume after die?

2002-01-04 Thread Richard J. Barbalace
w the exception is caused. Can anyone recommend a technique to do this type of resumptive exception handling in perl? I suspect it involves something more complicated than an eval {BLOCK} form. Thanks. + Richard J. Barbalace Cambridge, MA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Resume after die?

2002-01-03 Thread Richard J. Barbalace
tion handling in Perl? I have code that allows redoing the entire eval block or simply continuing after the eval block, but I have not found any way to resume inside the eval block. + Richard J. Barbalace Cambridge, MA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Extracting Titles from a bunch of HTML files

2002-01-02 Thread Richard S. Crawford
I have a directory containing over 250 HTML files. What is the best way to extract the title (between the and tags) of each file without having to open the file and read in the contents, which seems like it would be very slow? Sliante, Richard S. Crawford http://www.mossroot.com AIM

Making Cygwin and Apache and Perl Play Nice

2001-12-30 Thread Richard S. Crawford
Apache (I'm running 1.3)? Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Pu

Re: Help with Debugging

2001-11-17 Thread Richard S. Crawford
>subreplace >{ >use $ref -> [X] = "cm498p" >} >replace (/@Classes); >print @Classes; Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what

Re: Login methods / passing values

2001-11-16 Thread Richard J. Barbalace
the same machine as the original user, which might make it less useful. There are various ways to do the above. Talk to your local security expert for more ideas. + Richard J. Barbalace <[EMAIL PROTECTED]> Cambridge, Massachusetts, USA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem comparing strings

2001-11-14 Thread Richard S. Crawford
How about chomp($character=); ? At 11:13 AM 11/14/2001, samuel wrote: >print"\nCharacter?:"; >$character= ; Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the hear

Re: Off-Topic (200%) - Where are you from? - Results

2001-11-14 Thread Richard J. Barbalace
ngs to this list. I certainly won't remember where everyone is from otherwise, and it is useful to note a poster's location and time zone difference. + Richard J. Barbalace [EMAIL PROTECTED] Cambridge, Massachusetts, USA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Off-Topic (200%) - Where are you from?

2001-11-11 Thread Richard S. Crawford
~+m†‹ >„ ¡¹É‚w«J‡íÁªÞB楊܀²Ë«jwJ—œ‰©b²Ð >\c’>º¹ËUz¸Ÿ‰Æ­Š‰ÓzËb Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rig

Re: Off-Topic (200%) - Where are you from?

2001-11-09 Thread Richard S. Crawford
a nice town. At 11:25 AM 11/9/2001, Christopher Solomon wrote: >But you must get to meet so many great people! Is the cruise ship you >refer to, a Geek Cruises conference? Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: r

RE: Off-Topic (200%) - Where are you from?

2001-11-09 Thread Richard S. Crawford
imezone). > >Am I right? > >I'm from Quebec, Canada.. and you? Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to th

Re: Problem using IF with AND

2001-10-31 Thread Richard J. Barbalace
'and' and &&, if the first part ($client ne $newclient) is false, the whole condition must be false, so the second part ($method ne $newmethod) is not evaluated. Similarly for 'or' and ||, if the first part is true, the whole condition must be true, so the second part is not evaluated. + Richard J. Barbalace (a little behind on the list digests) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl, Win2K, and Apache

2001-10-24 Thread Richard S. Crawford
n/" > >(or your path to cgi-bin) > >Then you have right under that: > > > AllowOverride None > Options None > Order allow,deny > Allow from all > > >this is usually located right before the tag > >Maybe that's the reason >

Re: Perl, Win2K, and Apache

2001-10-24 Thread Richard S. Crawford
Done... but is there then a way to get to the script directly, so that I can browse to http://localhost/cgi-bin/perltest.pl ? I get a 404 error when I try.. At 09:54 AM 10/24/2001, Etienne Marcotte wrote: >You need to put the pl file in /cgi-bin/ > >Etienne > >"Richar

Re: Perl, Win2K, and Apache

2001-10-24 Thread Richard S. Crawford
you have the full path in the shebang line? > >Etienne > >"Richard S. Crawford" wrote: > > > I've got Apache running on this Win2K box, as well as MySQL. I can make > > PHP talk to MySQL, and I've managed to get Tomcat up and running and > > talk

Perl, Win2K, and Apache

2001-10-24 Thread Richard S. Crawford
I've got Apache running on this Win2K box, as well as MySQL. I can make PHP talk to MySQL, and I've managed to get Tomcat up and running and talking to Apache as well, but I seem to be at a loss when getting Perl to talk to Apache. Any help would be most appreciated. Sliante,

Paragraph marks in Word->HTML file

2001-10-22 Thread Richard Brust
The editing dept does a Save As...*.html on all the MS-Word files we publish. However, in the process, each line in the new HTML file now ends with a paragraph mark. So, I am trying to write a script that deletes HTML tags over new lines (which I got to work), but also over paragraph marks. Wha

Accessing a Microsoft Access Database

2001-10-22 Thread Mace, Richard
steps to follow so I can understand what needs to be done? I'm running PERL 5 on a UNIX machine and have the database on the same machine. Any help, gratefully received. Thanks Richard. Richard Mace E-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Array of Hashes?

2001-09-24 Thread Richard J. Barbalace
tname, however, there's no reason not to use an array of hashes. To print out the data you can do something like: foreach my $hostname (@hostnames) { print "Hostname: $hostname\n"; print "Address: ".$hosts{$hostname}->{ipaddr}."\n&

Question

2001-09-17 Thread Richard Zimmerman
i.e.: locate 12, 26) which would set the cursor 12 rows down, 26 columns over. Is there such an equivalent in Perl? A lot of the applications I'm looking into moving from DOS/QB to Linux involve formatted screens if you will. Any help or points in the right direction are greatly appreciated.

Re: Math::BigInt

2001-09-14 Thread Richard J. Barbalace
23123.12345. Value 2: 1123579912.12345. Value 3: 1123579912123450.. Value 4: 1123579912123450. Value 5: 1123579912123450:test. It seems awful to call Math::BigFloat->new() three times to do the calculation part. Is there a simpler way of doing this? + Richard J. Barbalace <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

<    1   2   3   4   5   6   >