RE: Help Required

2003-11-14 Thread NYIMI Jose (BMB)
perldoc CGI See section : GENERATING A REDIRECTION HEADER GENERATING A REDIRECTION HEADER print $query->redirect('http://somewhere.else/in/movie/land'); Sometimes you don't want to produce a document yourself, but simply redirect the browser elsewhere, perhaps choosing a URL based on the time

Re: Help Required

2003-11-14 Thread Tore Aursand
On Fri, 14 Nov 2003 00:17:29 -0600, Andrew Gaffney wrote: >> In my cgi script I want to open some site let us suppose >> http://www.google.com > use CGI; > > my $cgi = new CGI; > print $cgi->header; > print "location.href = 'http://www.google.com'; > > There

Parsing for base domain

2003-11-14 Thread perl
I would like to parse the servername to get the base domain or atleast x.com, x.org, x.net, etc. from something like www.x.com. Can someone give me a regex for that? I guess the scenarios could be as follows: x.com www.x.com host.x.net beta.x.org I think what I want is the value of the left and

multilined regexp won't return result

2003-11-14 Thread perl
I wrote a script that reads the content of a html page (using the LWP module) and puts it into a variable, in my example $result now i would like to snip out a part of that long htmlcode. I am looking for everyting between these two strings This is a part of the code from $result [html code befo

script to download via http

2003-11-14 Thread Richard Foley
I am looking for a script or instruction on how to download files via http. I can browse to the directory and download files individually but I want to automate the process and download all files in directory at regular intervals. I cannot use ftp to get files from this directory. any help is app

Re: references and objects

2003-11-14 Thread angie ahl
Sorry I forgot to mention that the package IS an object ;) on 14/11/03 angie ahl said: >Hi everyone > >I'm failing to find something in the manuals (or at least the bit I'm >missing ;) > >I have an package called "Event" > >in it I have a subroutine called EventList > >I want to return an array a

Re: peeking at the top or bottom of an array

2003-11-14 Thread Amit Phatak
> Is there a way to "peek" at the top or bottom of an array? for the first element you could "peek" like: $first = $array[0]; for the last element you could "peek" like: $last = $array[$#array]; $# indexes the last element of the array. just make sure you use the same array's name in the index

Re: ActiveState 5.8.0 vs 5.8.1

2003-11-14 Thread Bob X
"Drieux" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Thursday, Nov 13, 2003, at 14:10 US/Pacific, Bob X wrote: > > > This may not have a difinitive answer. But will the modules I use for > > 5.8.0 > > work/be available with 5.8.1? Basically I am using HTML-Template and > > C

Re: Parsing for base domain

2003-11-14 Thread Tore Aursand
On Fri, 14 Nov 2003 01:40:35 -0800, perl wrote: > I would like to parse the servername to get the base domain or atleast > x.com, x.org, x.net, etc. from something like www.x.com. There are modules on to do this for you, but if you _only_ have the names you mentioned, you co

re

2003-11-14 Thread john
X-Spam-Check-By: la.mx.develooper.com X-Spam-Status: No, hits=5.4 required=7.0 tests=CARRIAGE_RETURNS,MAILTO_TO_SPAM_ADDR,NO_MX_FOR_FROM,NO_REAL_NAME,QUOTED_EMAIL_TEXT,SPAM_PHRASE_00_01,SUPERLONG_LINE version=2.44 X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/ On Nov 13, 2003, at 1:1

RE: Mechanize

2003-11-14 Thread Paul Kraus
Wow its working now. Must have been staring at the code to long and was missing some obvious type... Thanks!! How can I parse $a->content? I must be missing something. If I try to foreach ($a -> content){ if (/someregeq/){ print "$_\n"; } } It always prints. This

Re: Counting (easy!)

2003-11-14 Thread Tim
You need to escape the '@' in your variable: /*** open(FILE, " $email = "[EMAIL PROTECTED]"; while () { print; print if (/$email/); # $OK = 1 if /$email/; } */ At 04:19 PM 11/13/03 -0500, you wrote: I have a list of email addresses in a text file one to a line.

RE: Mechanize

2003-11-14 Thread Paul Kraus
Lol ... Now that is ironic... Should have read ...staring at the code to long and was missing some obvious typo. :) Paul -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 8:58 AM To: 'Kevin Old' Cc: 'Beginners Perl' Subject: RE: Mechanize Wow

"Help Required" might not get you help

2003-11-14 Thread Rob Richardson
Greetings! A general thought: Subject lines should tell people what the subject of the e-mail is. On many lists and newsgroups dedicated to programming languages, many of the most knowledgeable people won't bother reading messages with vague subjects like "Help Required". They don't want to was

Re: Replace with regular expression

2003-11-14 Thread Ricardo Pichler
Very thanks Jeff and Wiggins, this work perfectly! Regards, Ricardo Pichler - Original Message - From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> To: "Ricardo Pichler" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, November 14, 2003 12:27 AM Subject: Re: Replace with regular exp

RE: Mechanize

2003-11-14 Thread Kevin Old
On Fri, 2003-11-14 at 09:02, Paul Kraus wrote: > Lol ... Now that is ironic... Should have read ...staring at the code to > long and was missing some obvious typo. :) Paul, Have you looked at the POD docs that came with WWW::Mechanize? It clearly shows how to parse the content http://search.cpa

RE: Mechanize

2003-11-14 Thread Paul Kraus
Yes I have read the POD in fact I have them printed out in front of me. Unless I am missing something and I doubt I am since I have read it like 4 times. All you can really do using mechanize is parse the content for links and forms. I need to parse out data from the page that is neither a link or

RE: Mechanize

2003-11-14 Thread Kevin Old
On Fri, 2003-11-14 at 09:36, Paul Kraus wrote: > Yes I have read the POD in fact I have them printed out in front of me. > Unless I am missing something and I doubt I am since I have read it like > 4 times. All you can really do using mechanize is parse the content for > links and forms. > > I nee

RE: Mechanize

2003-11-14 Thread Paul Kraus
Ok here is a sample of the data. Its very confidential so I am trying to be selective on what I send. I am just including the header information since its not going to be dangerous to send :) Basically a table exists on this page that has merchant transaction info like this... The only lines on

RE: Mechanize

2003-11-14 Thread Paul Kraus
I was way over thinking this. A simply split command to break the scalar content up by \n solved my problems. Paul -Original Message- From: Kevin Old [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 9:47 AM To: [EMAIL PROTECTED] Cc: 'Beginners Perl' Subject: RE: Mechanize On

Re: script to download via http

2003-11-14 Thread Rob Dixon
Richard Foley wrote: > > I am looking for a script or instruction on how to download files via > http. I can browse to the directory and download files individually but > I want to automate the process and download all files in directory at > regular intervals. > > I cannot use ftp to get files fro

Re: "Help Required" might not get you help

2003-11-14 Thread Rob Dixon
Rob Richardson wrote: > > A general thought: Subject lines should tell people what the subject > of the e-mail is. On many lists and newsgroups dedicated to > programming languages, many of the most knowledgeable people won't > bother reading messages with vague subjects like "Help Required". Th

RE: Mechanize

2003-11-14 Thread Wiggins d Anconia
> Ok here is a sample of the data. Its very confidential so I am trying to > be selective on what I send. I am just including the header information > since its not going to be dangerous to send :) > > Basically a table exists on this page that has merchant transaction > info like this... > >

Re: references and objects [Solved]

2003-11-14 Thread angie ahl
I changed my code so the variables aren't references; sub EventList { my ($class, %arg) = @_; # load of code here return ([EMAIL PROTECTED], $startdate, $enddate); } And then called it like so: my @tempres = $event->EventList(skip=>0, max=>10); my $EventList = @tempres[0]; m

RE: "Help Required" might not get you help

2003-11-14 Thread Charles K. Clarkson
Rob Richardson <[EMAIL PROTECTED]> wrote: : : A general thought: Subject lines should tell people what the : subject of the e-mail is. On many lists and newsgroups : dedicated to programming languages, many of the most : knowledgeable people won't bother reading messages with vague : subjects li

Re: When is Perl 6 coming out?

2003-11-14 Thread Randal L. Schwartz
> "Km" == Km <[EMAIL PROTECTED]> writes: Km> i am just curious -- is perl 6 coming with a compiler ? Why would they remove a feature already available since Perl 1? Perl has *always* been compiled. Recent Perls even let you get at it a bit easier. -- Randal L. Schwartz - Stonehenge Con

Re: Starting Perl

2003-11-14 Thread Randal L. Schwartz
> "Chuk" == Chuk Goodin <[EMAIL PROTECTED]> writes: Chuk> Sort of both, but more of the former. Basically, if I've got a Chuk> directory sitting there with three or four different types of Chuk> files in it, I'd like to know which ones are perl (and I can Chuk> just open them up in vi and fix

Re: Starting Perl

2003-11-14 Thread Randal L. Schwartz
> "Chris" == Chris McMahon <[EMAIL PROTECTED]> writes: Chris> I name my Perl scripts on my FreeBSD box "something.pl" Chris> because I'm the first (and so far only, but not for long) user Chris> of a Unix-y system in an all-Windows shop, and I don't want my Chris> colleagues to be confused.

Re: validate email chars

2003-11-14 Thread Randal L. Schwartz
> "perl" == perl <[EMAIL PROTECTED]> writes: perl> Can someone help me with validating email address chars? perl> I think I have the back part ok. I just need to verify the front of the @ perl> sign to have atleast 4 chars, start with a-Z allows \w\-\. Thus keeping my legitmate email address

Re: multilined regexp won't return result

2003-11-14 Thread Rob Dixon
Hi. You're not inviting people to reply to you because: - you don't have a real name in your 'From:' (You have a personal mail account, so why not supply your name?) - You have a line in your message 127 characters long, which isn't helped by your 24-character indent. (Try to

Re: references and objects

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 11:40:51AM +, angie ahl wrote: > I want to return an array and 2 scalars. > > sub EventList { > my ($class, %arg) = @_; > # load of code here > return ([EMAIL PROTECTED], \$startdate, \$enddate); > } > > So far so good (I think) You're actually returning r

RE: Starting Perl

2003-11-14 Thread McMahon, Chris
OK, I just can't leave this one alone, I have to know... =) You *are* the one who wrote "Learning Perl on Win32 Systems", yes? The more-or-less definitive guide to arguably the most powerful Windows scripting language around? Were you an entirely different person in 1997? Poses

Re: Parsing for base domain

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 14, [EMAIL PROTECTED] said: >I would like to parse the servername to get the base domain or atleast >x.com, x.org, x.net, etc. from something like www.x.com. You're sure you won't run into www.foo.co.uk domains? >I think what I want is the value of the left and right of the last dot. Her

How do you dynamically assign array names?

2003-11-14 Thread Douglas Houston
Hi, I am trying to initialize a dynamically-named array, i.e. with the following test code (if I type "script.pl char" at the command prompt) I get the message "array char contains 1 2 3" but I get a warning if 'use strict' is on. Can anyone show me how it should be done (I would like to use 'use

Re: Starting Perl

2003-11-14 Thread Randal L. Schwartz
> "Chris" == McMahon, Chris <[EMAIL PROTECTED]> writes: Chris> You *are* the one who wrote "Learning Perl on Win32 Systems", yes? I wrote the "Learning Perl" parts yes. Eric Olsen (I'm probably mangling the spelling of his name) wrote the Win32 parts though. I didn't even know the book was

Re: references and objects

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 14, angie ahl said: >I want to return an array and 2 scalars. Well, you're returning an array reference and two scalar references. I don't think the scalars need to be referenced, but I would probably keep the array reference. >sub EventList { >my ($class, %arg) = @_; ># load of

Re: How do you dynamically assign array names?

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 14, Douglas Houston said: >I am trying to initialize a dynamically-named array, i.e. with the >following test code (if I type "script.pl char" at the command prompt) I >get the message "array char contains 1 2 3" but I get a warning if 'use >strict' is on. Can anyone show me how it should b

Re: How do you dynamically assign array names?

2003-11-14 Thread Randal L. Schwartz
> "Douglas" == Douglas Houston <[EMAIL PROTECTED]> writes: Douglas> I am trying to initialize a dynamically-named array, Douglas> i.e. with the following test code (if I type "script.pl char" Douglas> at the command prompt) I get the message "array char contains Douglas> 1 2 3" but I get a war

Re: How do you dynamically assign array names?

2003-11-14 Thread Wiggins d Anconia
> Hi, > > I am trying to initialize a dynamically-named array, i.e. with the > following test code (if I type "script.pl char" at the command prompt) I > get the message "array char contains 1 2 3" but I get a warning if 'use > strict' is on. Can anyone show me how it should be done (I would lik

RE: How do you dynamically assign array names?

2003-11-14 Thread NYIMI Jose (BMB)
To complete previous posts, have a look to this: Subject: Why it's stupid to `use a variable as a variable name' http://perl.plover.com/varvarname.html José. -Original Message- From: Douglas Houston [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 4:55 PM To: [EMAIL PROTEC

Re: How do you dynamically assign array names?

2003-11-14 Thread Douglas Houston
On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: > On Nov 14, Douglas Houston said: > > >I am trying to initialize a dynamically-named array, i.e. with the > >following test code (if I type "script.pl char" at the command prompt) I > >get the message "array char contains 1 2 3" but I get a warning

Re: How do you dynamically assign array names?

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 14, Douglas Houston said: >On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: > >> On Nov 14, Douglas Houston said: >> >> >I am trying to initialize a dynamically-named array, i.e. with the >> >following test code (if I type "script.pl char" at the command prompt) I >> >get the message "array

RE: How do you dynamically assign array names?

2003-11-14 Thread Charles K. Clarkson
Douglas Houston [mailto:[EMAIL PROTECTED] : : WHY do I need to explain why I want to do this? Because no one wants to give a loaded gun to someone who hasn't demonstrated a good grasp of gun safety. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home

RE: How do you dynamically assign array names?

2003-11-14 Thread Wiggins d Anconia
> Douglas Houston [mailto:[EMAIL PROTECTED] > : > : WHY do I need to explain why I want to do this? > > Because no one wants to give a loaded gun to > someone who hasn't demonstrated a good grasp of > gun safety. > > That is a very ironic response coming from someone who based on their

Re: How do you dynamically assign array names?

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 04:30:05PM +, Douglas Houston wrote: > On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: >> On Nov 14, Douglas Houston said: >> >>> I am trying to initialize a dynamically-named array >> >> You need to explain WHY you want to do this. There doesn't seem to me to >> be a g

Re: How do you dynamically assign array names?

2003-11-14 Thread Rob Dixon
Douglas Houston wrote: > > On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: > > > On Nov 14, Douglas Houston said: > > > > >I am trying to initialize a dynamically-named array, i.e. with the > > >following test code (if I type "script.pl char" at the command prompt) I > > >get the message "array cha

Re: How do you dynamically assign array names?

2003-11-14 Thread Rob Dixon
Wiggins D Anconia wrote: > > > Douglas Houston [mailto:[EMAIL PROTECTED] > > : > > : WHY do I need to explain why I want to do this? > > > > Because no one wants to give a loaded gun to > > someone who hasn't demonstrated a good grasp of > > gun safety. > > > > > > That is a very ironic respon

Capturing system call output value

2003-11-14 Thread perl
Can someone help me with capturing an output of a system() call? ie ($a)=system("uname -n"); where $a would have the output value. thanks - eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Capturing system call output value

2003-11-14 Thread Wiggins d Anconia
> Can someone help me with capturing an output of a system() call? > > ie ($a)=system("uname -n"); > > where $a would have the output value. > perldoc -q 'output of a command' You want backticks instead, though there are better ways to come by the sysem name, and don't use $a ($name) =

Re: Capturing system call output value

2003-11-14 Thread perl
Thanks that help. but I notice there is a newline included in the variable when using the ($name)=`uname -n`; Is this a normal thing that I should strip? > > >> Can someone help me with capturing an output of a system() call? >> >> ie ($a)=system("uname -n"); >> >> where $a would have the output

RE: Capturing system call output value

2003-11-14 Thread Ned Cunningham
Chomp Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, Novemb

Re: When is Perl 6 coming out?

2003-11-14 Thread Rob Dixon
Randal L. Schwartz wrote: : > > "Km" == Km <[EMAIL PROTECTED]> writes: > > Km> i am just curious -- is perl 6 coming with a compiler ? > > Why would they remove a feature already available since Perl 1? [snip] I think you and I both know what Km means by a 'compiler'. Did your first train

Using Net::FTP for chmod (help needed ASAP)

2003-11-14 Thread Jeff Westman
Hi, Much to my surprise, when I run this code, it never returns 0 if it could not carry out the operation. $rc = $f->site("chmod 666 $remoteFile") or die "ftp: Could not change permissions: $!\n"; It seems to return a 2 on success, and a 5 if it could not access the file because of a di

Re: How do you dynamically assign array names?

2003-11-14 Thread david
Douglas Houston wrote: > Hi, > > I am trying to initialize a dynamically-named array, i.e. with the > following test code (if I type "script.pl char" at the command prompt) I > get the message "array char contains 1 2 3" but I get a warning if 'use > strict' is on. Can anyone show me how it shoul

Re: Using Net::FTP for chmod (help needed ASAP)

2003-11-14 Thread Wiggins d Anconia
> Hi, > > Much to my surprise, when I run this code, it never returns 0 if it could not > carry out the operation. > > $rc = $f->site("chmod 666 $remoteFile") > or die "ftp: Could not change permissions: $!\n"; > > It seems to return a 2 on success, and a 5 if it could not access the

Re: How do you dynamically assign array names?

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 12:25:41PM -0800, david wrote: > Douglas Houston wrote: >> >> I am trying to initialize a dynamically-named array > > this normally can't be done cleanly and is generally not recommanded given > there are other ways to accomplish bascially the same thing. but if you are

Re: How do you dynamically assign array names?

2003-11-14 Thread david
David wrote: >> this normally can't be done cleanly and is generally not recommanded >> given there are other ways to accomplish bascially the same thing. Steve Grazzini wrote: > > But why use the symbol table at all? That's more dangerous than using > a regular hash, and more awkward than usi

Re: Using Net::FTP for chmod (help needed ASAP)

2003-11-14 Thread Jeff Westman
Wiggins d Anconia <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Much to my surprise, when I run this code, it never returns 0 if it > could not > > carry out the operation. > > > > $rc = $f->site("chmod 666 $remoteFile") > > or die "ftp: Could not change permissions: $!\n"; > > > > I

Re: How do you dynamically assign array names?

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 01:24:53PM -0800, david wrote: > David wrote: >>> this normally can't be done cleanly and is generally not recommanded >>> given there are other ways to accomplish bascially the same thing. > > Steve Grazzini wrote: >> But why use the symbol table at all? That's more dange

Re: external sub routine

2003-11-14 Thread drieux
On Friday, Nov 14, 2003, at 18:38 US/Pacific, David Inglis wrote: I have a some code that will be used in a number of my scripts, I know that if I have a sub in a script I can call that piece of code as many times as required from the same script but how do I make this sub vailable to other scrip

text replacement+

2003-11-14 Thread Kiko Uehara
Hi everyone, I have a following data to analyze : - BlockA color 0 0 0 rcolor 1 1 1 dcolor 2 2 2 BloackB color 0 0 0 rcolor 1 1 1 dcolor 2 2 2 (...and so on) - I want to replace BlockA rcolor "1 1 1" to "4 4 4" and BlockB

Re: text replacement+

2003-11-14 Thread James Edward Gray II
On Nov 14, 2003, at 3:57 PM, Kiko Uehara wrote: Hi everyone, Howdy. I have a following data to analyze : - BlockA color 0 0 0 rcolor 1 1 1 dcolor 2 2 2 BloackB color 0 0 0 rcolor 1 1 1 dcolor 2 2 2 (...and so on) - With ya so far.

Re: How do you dynamically assign array names?

2003-11-14 Thread Rob Dixon
Steve Grazzini wrote: > > On Fri, Nov 14, 2003 at 12:25:41PM -0800, david wrote: > > Douglas Houston wrote: > >> > >> I am trying to initialize a dynamically-named array > > > > this normally can't be done cleanly and is generally not recommanded given > > there are other ways to accomplish bascial

Re: text replacement+

2003-11-14 Thread John W. Krahn
Kiko Uehara wrote: > > Hi everyone, Hello, > I have a following data to analyze : > - > BlockA > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > > BloackB > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > (...and so on) > - > > I want

Re: text replacement+

2003-11-14 Thread James Edward Gray II
On Nov 14, 2003, at 4:13 PM, James Edward Gray II wrote: my $block; while () { if (/^(Block[A-Z]+)/) { $block = $1; } elsif (/^\s+([rd]?color)/) { my $color = $1; s/\d+ \d+ \d+$/$changes{"${block}_$color"}/ if exists $

RE: Parsing for base domain

2003-11-14 Thread Tim Johnson
How about something like this (it's my first try, but it seems to work)... # use strict; use warnings; my @domains = qw(www.x.com x.com www.sandisk.com network.tv funny.co.jp johnson.pictures.geography.info); foreach(sort @domains){ if($_ =~ /([a-zA-Z0-9\-.]

Re: text replacement+

2003-11-14 Thread Rob Dixon
Kiko Uehara wrote: > > I have a following data to analyze : > - > BlockA > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > > BloackB > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > (...and so on) > - > > I want to replace > BlockA rcolor

Re: Starting Perl

2003-11-14 Thread Rob Dixon
Randal L. Schwartz wrote: > > > "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes: > > Rob> Perl programs conventionally go in *.pl files. > > No. Only on broken architectures that demand it (read: "windows"). > On Unix, Perl programs have no extension, any more than "cat" has an > extension. Why

OS Choices (was Starting Perl)

2003-11-14 Thread Chris Mortimore
Randal L. Schwartz wrote: > > If you name your Perl program "something.pl" on a Unix machine, I > shall continue to look at you quizzically until either you or I leave > the room. :) Rob Dixon wrote: > > Don't worry. I won't touch your Unix machine. (looking quizzically back) To pass on an anon

An Alternative to Test::Harness was Re: external sub routine

2003-11-14 Thread drieux
On Friday, Nov 14, 2003, at 13:59 US/Pacific, Rajesh Dorairajan wrote: [..] All I want to do is: #Create a logger object and log a message using log4perl #call the function and check the $retval #if $retval == 1 $logger->info("Test succeded") #else $logger->warn( "Test failed" ) I've a bunch of s

Getting the best answer(WAS: RE: How do you dynamically assign array names?)

2003-11-14 Thread Tim Johnson
I think this touches on an issue that people should consider when they post to this list. Often people ask a question, and instead of asking for help with a problem, they ask "How to do x", when "x" may not even be a solution to their problem (sorry if I'm singling you out, OP). When submitting

Help with UNIX commands

2003-11-14 Thread Mame Mbodji
I am researching some unix commands and I would like to know if someone knows where I can find them online. I just want to know what are they used for and if there are some available examples online.The commands are: snapshot and sdtprocess. Sorry if this is not the right place to post this. T

Re: Parsing for base domain

2003-11-14 Thread drieux
On Friday, Nov 14, 2003, at 14:28 US/Pacific, Tim Johnson wrote: [..] use strict; use warnings; my @domains = qw(www.x.com x.com www.sandisk.com network.tv funny.co.jp johnson.pictures.geography.info); foreach(sort @domains){ if($_ =~ /([a-zA-Z0-9\-.]*?)([a-zA-Z0-9\- ]+\.(co\.\w{2}|com|net|edu|go

Re: Capturing system call output value

2003-11-14 Thread drieux
On Friday, Nov 14, 2003, at 10:48 US/Pacific, [EMAIL PROTECTED] wrote: Thanks that help. but I notice there is a newline included in the variable when using the ($name)=`uname -n`; [..] See the Sys::Hostname module... http://danconia.org I of course like wiggins recommendation since the more tra

writing excel files

2003-11-14 Thread Andrew Gaffney
I need to be able to create Microsoft Excel files from a perl script. I want to know which module for doing this that people recommend. I don't need anything too fancy. There will be very little formatting. What formatting I need to do will be column widths and maybe bold and/or underline. I als

Re: Help with UNIX commands

2003-11-14 Thread Wiggins d'Anconia
Mame Mbodji wrote: I am researching some unix commands and I would like to know if someone knows where I can find them online. I just want to know what are they used for and if there are some available examples online.The commands are: snapshot and sdtprocess. Sorry if this is not the right pla

Re: writing excel files

2003-11-14 Thread James Edward Gray II
On Nov 14, 2003, at 8:37 PM, Andrew Gaffney wrote: I need to be able to create Microsoft Excel files from a perl script. I want to know which module for doing this that people recommend. I don't need anything too fancy. There will be very little formatting. What formatting I need to do will be

Re: Counting (easy!)

2003-11-14 Thread R. Joseph Newton
Steve Grazzini wrote: > > What do you think is happening under the hood for something like > > > > print for (0..0, 1, 2..5, func(6)..func(99)) > > I think the whole list would have to be generated. The optimization > only applies to the case where there's just one range in place of the > LIST.

Pivoting Data for use with gnuplot

2003-11-14 Thread Chuck Fox
Fellow perl coders, I am having trouble wrapping my head around how to accomplish the following: Given a dbi result set that consists of datetime, servername, databasename, procedurename and average elapsed time. Convert this into an data structure suitable for export to a file for use with gnu

Re: writing excel files

2003-11-14 Thread Andrew Gaffney
James Edward Gray II wrote: On Nov 14, 2003, at 8:37 PM, Andrew Gaffney wrote: I need to be able to create Microsoft Excel files from a perl script. I want to know which module for doing this that people recommend. I don't need anything too fancy. There will be very little formatting. What form

Re: Help with UNIX commands

2003-11-14 Thread Chuck Fox
[EMAIL PROTECTED] wrote: I am researching some unix commands and I would like to know if someone knows where I can find them online. I just want to know what are they used for and if there are some available examples online.The commands are: snapshot and sdtprocess. Sorry if this is not the ri

Re: writing excel files

2003-11-14 Thread Chuck Fox
[EMAIL PROTECTED] wrote: I need to be able to create Microsoft Excel files from a perl script. I want to know which module for doing this that people recommend. I don't need anything too fancy. There will be very little formatting. What formatting I need to do will be column widths and maybe bo

Re: writing excel files

2003-11-14 Thread Andrew Gaffney
Chuck Fox wrote: [EMAIL PROTECTED] wrote: I need to be able to create Microsoft Excel files from a perl script. I want to know which module for doing this that people recommend. I don't need anything too fancy. There will be very little formatting. What formatting I need to do will be column wi

Re: text replacement+

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 15, Kiko Uehara said: >- > BlockA >color 0 0 0 >rcolor 1 1 1 >dcolor 2 2 2 > > BloackB >color 0 0 0 >rcolor 1 1 1 >dcolor 2 2 2 >- > BlockA rcolor "1 1 1" to "4 4 4" > BlockB rcolor "1 1 1" to "0 0 0". > >I have variables like