Re: printing same type of files from mutiple subdirectories of a directory

2003-10-18 Thread Tore Aursand
On Fri, 17 Oct 2003 09:06:24 -0700, A L wrote: > Let's say there is a directory called Top. Within the Top directory, > there are 26 subdirectories named A-Z. Within each of those A-Z > subdirectories contain one or more filess that ends in .txt extension. > Now, to print out the content within

Re: Text encoding reversal.

2003-10-18 Thread Daniel Staal
--On Saturday, October 18, 2003 16:29 -0500 Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: Well generally this is considered either HTML or URL escaping. So depending on which context you are needing (the above looks like URL) you may want to try the following two modules: URI::Escape HTML::Entitie

Re: Text encoding reversal.

2003-10-18 Thread Wiggins d'Anconia
Daniel Staal wrote: Quick version: Can anyone tell me what the text encoding is called that this filename is in? Siham%2C%20Garden.png Longer version: I've got a minor snag in my conversion program: XML::Parser is encoding the attributes it returns to me. This isn't a problem in most cases, bu

Text encoding reversal.

2003-10-18 Thread Daniel Staal
Quick version: Can anyone tell me what the text encoding is called that this filename is in? Siham%2C%20Garden.png Longer version: I've got a minor snag in my conversion program: XML::Parser is encoding the attributes it returns to me. This isn't a problem in most cases, but there is one case

Re: More what is time?

2003-10-18 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > I know about localtime(time); But I was wondering if there was a formula > out there like 1066442632/60/60/24 that will say today is say 2003 10 17. A day has 86400 seconds. You can take it from there. Let us know what you do with that. Joseph -- To unsubscribe,

Re: Mod version

2003-10-18 Thread N00b Among n00bs
Wiggins D'Anconia wrote: N00b Among n00bs wrote: Not sure if this belongs in beginners.cgi or here, but... Can you tell me how I can make Perl find the version number of the CGI mod in use(does it depend on the server, or is it a purely Perl thing)? I assume you mean CGI.pm as opposed to mod_cg

Re: PostgreSQL and Customer Database

2003-10-18 Thread Daniel Staal
--On Saturday, October 18, 2003 18:14 +0200 Desmond Coughlan <[EMAIL PROTECTED]> wrote: OK, first question: is all the above possible ? I think that I know the answer, and that it's yes. You guessed right there, I believe. ;-) In which case, my second question is: where can I learn how to do it

PostgreSQL and Customer Database

2003-10-18 Thread Desmond Coughlan
Hi, I've been working on both SQL and Perl for a while now, and have lots more to learn, but am getting there. I'm going on a trip to the UK soon, and my choice of reading on the Eurostar is 'Programming Perl' by O'Reilly. :-\ I have a pet project, which is probably (what with all the other thin

Mod version

2003-10-18 Thread N00b Among n00bs
Not sure if this belongs in beginners.cgi or here, but... Can you tell me how I can make Perl find the version number of the CGI mod in use(does it depend on the server, or is it a purely Perl thing)? Thanks in advance -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: making a variable execute

2003-10-18 Thread Randal L. Schwartz
> "perl" == perl <[EMAIL PROTECTED]> writes: perl> Can someone show me how to make this compute? perl> my $a=2; perl> my $b=3; perl> my $oper="+"; perl> my $c = $a $oper $b; perl> where $c would have a value of 5. A lot faster and safer than the "eval" solution: my %ops = ( "+" => sub {

Re: What is the best way to set options in a constructor

2003-10-18 Thread Randal L. Schwartz
> "Dan" == Dan Anderson <[EMAIL PROTECTED]> writes: Dan> my $class = ref($proto) || $proto; Don't do this! . -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merly

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-18 Thread James Edward Gray II
On Saturday, October 18, 2003, at 03:12 AM, Kevin Pfeiffer wrote: Hi James, In article <[EMAIL PROTECTED]>, James Edward Gray II wrote: [...] my %quads = { quad1 => [ ], quad2 => [ ], quad3 => [ ], quad4 => [ ] }; I _think_ you meant to use parens and not curly brackets: my %quads = ( quad1 =>

Re: Comparing file dates with current date

2003-10-18 Thread Randal L. Schwartz
> "Paul" == Paul Harwood <[EMAIL PROTECTED]> writes: Paul> I am trying to compare a file's modified timestamp with the current date. Paul> I can use 'stat' to get the timestamp of the file but am not sure how to compare it to the localtime(). More importantly I want to be able to quantify the

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-18 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, James Edward Gray II wrote: [...] > On Friday, October 17, 2003, at 10:15 AM, Kevin Old wrote: [...] >> Yes, this is almost what I need, but instead of the headers being in >> the first column, I need the in the first row. [...] This is my new version (with heade

Re: alias in the shell

2003-10-18 Thread Smoot Carl-Mitchell
On Sat, 18 Oct 2003 01:10:08 -0400 Steve Grazzini <[EMAIL PROTECTED]> wrote: > > system("ENVVAR=whatever; export ENVVAR; command"); > > You don't need the export. You do if it you want to make ENVVAR exportable to the children of the forked shell. Otherwise it is a normal shell variable. > $FO

Re: alias in the shell

2003-10-18 Thread Hacksaw
> > Is it possible to create an alias in the shell from within Perl? > > > > I have a command I want to use in the shell after my Perl > > script executes. This command can vary, so what I would > > prefer to do is set up an alias to execute it. eval `perlscript` where perlscript puts out a l

Re: Description Search

2003-10-18 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Paul D. Kraus wrote: > Ok this could work but then I would need to know before hand what words > are important and which ones arent. We carry over 40 thousand products > having to do with orthotics, prosthetics, ect. Unless I misunderstood > you. Thanks agian! Thi

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-18 Thread Kevin Pfeiffer
Hi James, In article <[EMAIL PROTECTED]>, James Edward Gray II wrote: [...] > my %quads = { quad1 => [ ], > quad2 => [ ], > quad3 => [ ], > quad4 => [ ] }; I _think_ you meant to use parens and not curly brackets: my %quads = ( quad1 => [ ], quad2 => [ ], quad3 => [