Re: Sorting directory content using creation time

2004-02-04 Thread Wiggins d Anconia
Hi, Does anybody know if there is an option in readdir to return the file list in the order of their creation time? Or know of a way to do that? Been reading the perldoc w/o much luck. Thanks! Doubtful, but it should be trivial using readdir in a list context and using 'sort' with

RE: Sorting directory content using creation time

2004-02-04 Thread Li, William
I have a directory tree in the following format: 20040202/ 20040202/file1 20040203/ 20040203/file1 20040203/file2 20040203/file3 20040204 20040204/file1 20040204/file2 First, I'd want to read in top level dirs in the order of 20040204, 20040203, then 20040202. Then the files in each dir

Re: Sorting directory content using creation time

2004-02-04 Thread Brad Lhotsky
Also consider: perldoc File::Find On Wed, Feb 04, 2004 at 11:40:21AM -0700, Wiggins d Anconia wrote: Hi, Does anybody know if there is an option in readdir to return the file list in the order of their creation time? Or know of a way to do that? Been reading the perldoc w/o much

Re: db to HTML with checkboxes

2004-02-04 Thread Andrew Gaffney
Wiggins d Anconia wrote: Wiggins d'Anconia wrote: Andrew Gaffney wrote: Wiggins d'Anconia wrote: Andrew Gaffney wrote: I have a Perl CGI script that runs a query against a MySQL table. I have about 20 boolean values that I want shown as checkboxes in the produced HTML, but I don't want to

Re: comparing array value...

2004-02-04 Thread R. Joseph Newton
Singh, Ajit p wrote: Hello there, could somebody let me know how do i compare the contents of an array that I have... To be specific. my array contains something like below Why? I see nothing uniform between the lines of the array tosuggest that they should be handled as array elements.

DBI realted queries

2004-02-04 Thread Nilay Puri, Noida
Hi all, $sth-{LongReadLen} = 3; #what's the statement doing ? And from where to find out what all parameters are available to statement handle ? my ($id_prod); my $sqlstmt = EOM; SELECT id_prod FROM product EOM my $dbh = DBI-connect('DBI:Oracle:' . $SID, $USERNAME,

reference ?

2004-02-04 Thread Nilay Puri, Noida
Hi all, my $tmp_holder = find_file($VENTURA_BASEDIR . '/chapters', $title_code, ['pdf']); 1. What's the explanation of 3rd parameter ? 2. Is it declaring and passing a reference ? Is this the way to initialise a reference ? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: reference ?

2004-02-04 Thread Tim Johnson
The third parameter is an anonymous array. What this means is that we are referring to an array by reference that we didn't name first. If you printed it out, Perl would display it as something like ARRAY(something). Just as an example, you could do something like this:

Sending mails

2004-02-04 Thread Nilanjana Bhattacharya
Hello everybody, I have two radio buttons in a form. I want - When any one clicks on button A a mail will be sent to A when any one clicks on button B mail will be sent to button B. In both the cases whether someone clicks on A or B I will receive a mail. Can anyone help me with the coding

Fwd: Is it a perl Bug?

2004-02-04 Thread nancy clark
Tom Franklyn [EMAIL PROTECTED] wrote:From: Tom Franklyn Subject: Is it a perl Bug? Date: Wed, 04 Feb 2004 12:43:56 +0200 Dear all, I've following code : == #!/usr/bin/perl my $a = ab:cd:ef; my @b = split(/:/,$a); print (@b\n); my @c = ('/:/', $a); my @d = split(@c); print (@d\n);

Re: Sending mails

2004-02-04 Thread Eternius
Nilanjana Bhattacharya wrote: Hello everybody, I have two radio buttons in a form. I want - When any one clicks on button A a mail will be sent to A when any one clicks on button B mail will be sent to button B. In both the cases whether someone clicks on A or B I will receive a mail. Can

Re: FW: special vars

2004-02-04 Thread Eternius
Nilay Puri wrote: -Original Message- From: Nilay Puri, Noida Sent: Wednesday, February 04, 2004 11:37 AM To: Perl (E-mail) Subject: FW: special vars -Original Message- From: Nilay Puri, Noida Sent: Wednesday, February 04, 2004 11:32 AM To: Perl (E-mail) Subject:

Re: How Am I?

2004-02-04 Thread Rob Dixon
Rob Dixon wrote: [stuff] Sorry guys. Just glad it wasn't anything too embarrassing :-/ /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Fwd: Is it a perl Bug?

2004-02-04 Thread Gary Stainburn
On Wednesday 04 February 2004 10:48 am, nancy clark wrote: Tom Franklyn [EMAIL PROTECTED] wrote:From: Tom Franklyn Subject: Is it a perl Bug? Date: Wed, 04 Feb 2004 12:43:56 +0200 Dear all, I've following code : == #!/usr/bin/perl my $a = ab:cd:ef; my @b = split(/:/,$a);

Perl on WinCE

2004-02-04 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi, This is with regard to deploying Perl on Windows CE. My hardware setup consists of an Intel Celeron Processor, an i830M4 chipset Intel motherboard and I am running WindowsCE .Net 4.2 here. The board is targeted at Notebook devices. This is acting as my Windows CE device while I am using a

Re: DBI realted queries

2004-02-04 Thread Eternius
Nilay Puri wrote: Hi all, $sth-{LongReadLen} = 3; #what's the statement doing ? And from where to find out what all parameters are available to statement handle ? my ($id_prod); my $sqlstmt = EOM; SELECT id_prod FROM product EOM my $dbh = DBI-connect('DBI:Oracle:' . $SID,

Re: Is it a perl Bug?

2004-02-04 Thread Rob Dixon
Nancy Clark wrote: Tom Franklyn [EMAIL PROTECTED] wrote:From: Tom Franklyn Subject: Is it a perl Bug? Date: Wed, 04 Feb 2004 12:43:56 +0200 Dear all, I've following code : == #!/usr/bin/perl my $a = ab:cd:ef; my @b = split(/:/,$a); print (@b\n); my @c = ('/:/', $a); my @d

Uploading a CSV file to a Database Table

2004-02-04 Thread Mark Martin
I'm pulling my hair out trying to find out how to upload this data. My files can vary in numbers of rows and columns but the x and y axis always contain the same type of metadata - in my case cost centre and cost item. A sample of the data would look like :

RE: Dump Excel File to Database table

2004-02-04 Thread Paul Kraus
Paul, Thanks for your response. I'm open to any suggestion as I'm pulling my hair out trying to find out how to upload this data. My files can vary in numbers of rows and columns but the x and y axis always contain the same type of metadata - in my case cost centre and cost item. A sample

AW: FW: special vars

2004-02-04 Thread Bastian Angerstein
It is important believe me. Especialy if you are writting to logfiles, databases and unix named pipes. If in this context buffered io is on it will happen that if you prints something to a file or anywhere not the whole line is dumped only the stuff what was in the buffer when the buffer was

RE: Sending mails

2004-02-04 Thread Bob Showalter
Nilanjana Bhattacharya wrote: Hello everybody, I have two radio buttons in a form. I want - When any one clicks on button A a mail will be sent to A when any one clicks on button B mail will be sent to button B. In both the cases whether someone clicks on A or B I will receive a mail. Can

Re: Uploading a CSV file to a Database Table

2004-02-04 Thread James Edward Gray II
On Feb 4, 2004, at 6:50 AM, Mark Martin wrote: I'm pulling my hair out trying to find out how to upload this data. My files can vary in numbers of rows and columns but the x and y axis always contain the same type of metadata - in my case cost centre and cost item. A sample of the data would

Re: FW: special vars

2004-02-04 Thread Wiggins d Anconia
Nilay Puri wrote: if u use an OS like linux (which will not write things imediately to disc) this forces it to do so. That is misleading and not necessarily true. It tells Perl to unbuffer the I/O but not the OS. The OS decides what will and won't get written to disc, based on kernel

Re: DBI realted queries

2004-02-04 Thread Wiggins d Anconia
Hi all, $sth-{LongReadLen} = 3; #what's the statement doing ? And from where to find out what all parameters are available to statement handle ? my ($id_prod); my $sqlstmt = EOM; SELECT id_prod FROM product EOM my $dbh = DBI-connect('DBI:Oracle:' . $SID,

Re: Uploading a CSV file to a Database Table

2004-02-04 Thread Wiggins d Anconia
On Feb 4, 2004, at 6:50 AM, Mark Martin wrote: I'm pulling my hair out trying to find out how to upload this data. My files can vary in numbers of rows and columns but the x and y axis always contain the same type of metadata - in my case cost centre and cost item. A sample of the

RE: Is it a perl Bug?

2004-02-04 Thread Bakken, Luke
Tom Franklyn [EMAIL PROTECTED] wrote:From: Tom Franklyn Subject: Is it a perl Bug? Date: Wed, 04 Feb 2004 12:43:56 +0200 Dear all, I've following code : == #!/usr/bin/perl my $a = ab:cd:ef; my @b = split(/:/,$a); print (@b\n); my @c = ('/:/', $a); my @d = split(@c);

Re: How Am I?

2004-02-04 Thread Michael C. Davis
Any of us could have written an email like that. No big deal. Now THIS is embarrassing: I once had an employee who had a girlfriend named Jane. We had a client named Janet. (You can see where this is going.) Yup, turned out he like to write highly intimate emails involving fantasy scenarios

How to use the arguments to use() in the package being used

2004-02-04 Thread Dan Muey
Howdy, The subject says it all believe it or not :) What I'm trying to figure out is how to pass an argument (pragma I believe is the proper term) to use() and do sonethign in the package based on it. I've looked at CGI.pm source but can't seem to track it down. (Similar idea as to CGIs

In what order does a program run..??

2004-02-04 Thread Richard.C.1
I'm new to PERL and am trying to learn by reading some PERL programs. My question is this - does PERL execute sequentially and skip around embedded subroutines or Does it execute them inline? For example, if the program has the following set of code lines Line1 Line2 Line3 Sub1 Subcode1

Re: In what order does a program run..??

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, [EMAIL PROTECTED] said: My question is this - does PERL execute sequentially and skip around embedded subroutines or Does it execute them inline? Perl *compiles* subroutines when it sees them, but does NOT run them UNLESS you call them. Line1 Line2 Line3 Sub1 Subcode1 Subcode2 Endsub1

Re: How Am I?

2004-02-04 Thread Michael C. Davis
Any of us could have written an email like that. No big deal. Now THIS, however, is embarrassing: I once had an employee who had a girlfriend named Jane. We had a client named Janet. (You can see where this is going.) Yup, turned out he like to write intimate emails involving fantasy

Re: In what order does a program run..??

2004-02-04 Thread Wiggins d Anconia
I'm new to PERL and am trying to learn by reading some PERL programs. Perl or perl, never PERL. perldoc -q 'Perl' Sometimes that is good, sometimes bad depending on who wrote the Perl you are reading, it is one way to pick up very bad habits. Does the code you are reading have: use

Re: In what order does a program run..??

2004-02-04 Thread James Edward Gray II
On Feb 4, 2004, at 9:52 AM, [EMAIL PROTECTED] wrote: I'm new to PERL and am trying to learn by reading some PERL programs. Welcome then. Look's like you already got your answer, but here's a tip: perl refers to the program that compiles and runs programs written in the Perl programming

Re: How Am I?

2004-02-04 Thread Wiggins d Anconia
Rob Dixon wrote: [stuff] Sorry guys. Just glad it wasn't anything too embarrassing :-/ /R I thought I just missed the beginning to the best thread we have had in months ;-)... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: How to use the arguments to use() in the package being used

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Dan Muey said: # for old time's sake we'll just use our favorite module use Foo::Monkey qw(:Foo :Bar -doamazingthings); Well, depending on what you want to do with the arguments, you might want to use the Exporter module to handle exporting functions, variables, etc. perldoc perlmod

Re: How to use the arguments to use() in the package being used

2004-02-04 Thread Randal L. Schwartz
Dan == Dan Muey [EMAIL PROTECTED] writes: Dan What I'm trying to figure out is how to pass an argument Dan (pragma I believe is the proper term) to use() and do Dan sonethign in the package based on it. $ perldoc -f use [...] Imports some semantics into the current package from

RE: How Am I?

2004-02-04 Thread Holcomb, Kevin
Another reason you don't send personal emails form work place or work accounts... So I assume he lost his job. Poor chap Thanks, Kevin Holcomb W2K System Administrator/Database Administrator Bank of America E-Commerce: Interactive Information Management -Original Message-

Module for Country/Country Codes Lists

2004-02-04 Thread Shlomi Fish
Hi! My name is Shlomi Fish and I am a co-developer of the WWW::Form module: http://search.cpan.org/~bschmau/WWW-Form-1.13/ Benjamin Schmaus (WWW::Form's main developer) and I decided it would be a good idea for the module or an extension of it to provide common form controls like a country

Re: Module for Country/Country Codes Lists

2004-02-04 Thread Michael C. Davis
Look at Net::Domain::TLD on CPAN It has a fairly comprehensive list of country codes as well as top-level domain names. I noticed that it did not include entries that would validate '.co.uk' or '.co.jp', which echoes your concern about how actively this module is maintained. I would imagine

RE: How to use the arguments to use() in the package being used

2004-02-04 Thread Dan Muey
On Feb 4, Dan Muey said: # for old time's sake we'll just use our favorite module use Foo::Monkey qw(:Foo :Bar -doamazingthings); Well, depending on what you want to do with the arguments, you might want to use the Exporter module to handle exporting functions, variables, etc.

formatting and syntax

2004-02-04 Thread Michael S. Robeson II
Hi I am all still to new to PERL and I am having trouble playing with formatting my data into a new format. So here is my problem: I have data (DNA sequence) in a file that looks like this: # Infile bob AGTGATGCCGACG fred ACGCATATCGCAT jon CAGTACGATTTATC and I need it converted to:

RE: Module for Country/Country Codes Lists

2004-02-04 Thread Dan Muey
We enumberated our needs here: http://benschmaus.com/cgi-bin/twiki/view/Main/WwwFormCountryList So, is there a good module for doing that on CPAN that is also actively maintained and updated? If not I'll include it my upcoming module perhaps (no not Foo::monkey ;p) -- To unsubscribe,

Re: Uploading a CSV file to a Database Table

2004-02-04 Thread Mark Martin
hmmm..bit over my head I'm afraid. I've tried a different tack that maybe you can help me with. It's quite possible that I will be forced to take the data in MS Excel format (like attachment) so using the example that comes with the Spreadsheet::ParseExcel pm I can parse thru the worksheet and

Re: FW: special vars

2004-02-04 Thread Eternius
then I guess, I didn't understand it myself Wiggins D Anconia wrote: Nilay Puri wrote: if u use an OS like linux (which will not write things imediately to disc) this forces it to do so. That is misleading and not necessarily true. It tells Perl to unbuffer the I/O but not the OS. The OS

Re: In what order does a program run..??

2004-02-04 Thread Rob Dixon
Wiggins D Anconia wrote: I'm new to PERL and am trying to learn by reading some PERL programs. Perl or perl, never PERL. perldoc -q 'Perl' Only on Unix: perldoc What's the difference will work. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: How Am I?

2004-02-04 Thread Rob Dixon
Wiggins D Anconia wrote: Rob Dixon wrote: [stuff] Sorry guys. Just glad it wasn't anything too embarrassing :-/ /R I thought I just missed the beginning to the best thread we have had in months ;-)... Within my rouge, er, thanks for bottom-posting :) /R -- To

Re: FW: special vars

2004-02-04 Thread Rob Dixon
Eternius wrote: Wiggins D Anconia wrote: Nilay Puri wrote: if u use an OS like linux (which will not write things imediately to disc) this forces it to do so. That is misleading and not necessarily true. It tells Perl to unbuffer the I/O but not the OS. The OS decides what

RE: Program to reformat Perl code?

2004-02-04 Thread John McKown
On Wed, 4 Feb 2004, Toby Stuart wrote: http://perltidy.sourceforge.net/ Got it! Works! Thanks much! -- Maranatha! John McKown -- 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 use the arguments to use() in the package being used

2004-02-04 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: When you say use Module qw( args go here ); this is translated into BEGIN { require Module; Module-import(qw( args go here )); } That's an interesting point Jeff. You're right that it's Module-import() instead of Module::import() as

Re: In what order does a program run..??

2004-02-04 Thread James Edward Gray II
On Feb 4, 2004, at 12:11 PM, Rob Dixon wrote: Wiggins D Anconia wrote: I'm new to PERL and am trying to learn by reading some PERL programs. Perl or perl, never PERL. perldoc -q 'Perl' Only on Unix: perldoc What's the difference I believe you missed a -q in there: perldoc

Delimiter for string..

2004-02-04 Thread Singh, Ajit p
Friends, I am running a perl script as below which is working perfectly and want to replace the hardcoded values with variables. (the script accepts space as the delimiter) @respon = $placesock-print(./test.pl \7741266\ \DEM EXPO\ \255.255.255.255\ \n); and i am doing this @respon =

Re: formatting and syntax

2004-02-04 Thread Rob Dixon
Michael S. Robeson II wrote: Hi I am all still to new to PERL and I am having trouble playing with formatting my data into a new format. So here is my problem: I have data (DNA sequence) in a file that looks like this: [snip] Please don't talk about interesting stuff like DNA sequences on a

Re: Uploading a CSV file to a Database Table

2004-02-04 Thread James Edward Gray II
On Feb 4, 2004, at 11:24 AM, Mark Martin wrote: hmmm..bit over my head I'm afraid. What was over you head? What I showed, or building an SQL statement and feeding it to the DBI? I've tried a different tack that maybe you can help me with. It's quite possible that I will be forced to take

Re: formatting and syntax

2004-02-04 Thread david
Michael S. Robeson II wrote: I have data (DNA sequence) in a file that looks like this: # Infile bob AGTGATGCCGACG fred ACGCATATCGCAT jon CAGTACGATTTATC and I need it converted to: # Outfile R 1 20 A G U G A T G C C G A C G - - - - - - - bob

$PATH/expect_scripts/script.exp | $PATH/perl/script.pl

2004-02-04 Thread West, William M
the subject describes my wishes. what i really want to do is parse the screens of an expect script through a perl script... now, what i would like to do is understand how to catch a pipe in perl, and how my program will end up being different. I looked up pipe in 'perldoc -q pipe' and 'perldoc

RE: $PATH/expect_scripts/script.exp | $PATH/perl/script.pl

2004-02-04 Thread West, William M
i feel silly. with regard to pipe catching:: while (STDIN) { print $_, is a lovely string\n; } well, there's a simple answer to a simple question... willy :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Delimiter for string..

2004-02-04 Thread Chuck Fox
Ajitpal, [EMAIL PROTECTED] wrote: Friends, I am running a perl script as below which is working perfectly and want to replace the hardcoded values with variables. (the script accepts space as the delimiter) @respon = $placesock-print(./test.pl \7741266\ \DEM EXPO\ \255.255.255.255\ \n); and i

symbolic references

2004-02-04 Thread David Byrne
Greetings, I’m trying to generate a tree of nested hashes [of an arbitrary size]. Perhaps you could suggest a better solution. Currently I'm trying to use symbolic references according to the literature… but without much luck. Best regards, David My script is as follows (for now, I’ve tried to

RE: Delimiter for string..

2004-02-04 Thread Mark Anderson
I am running a perl script as below which is working perfectly and want to replace the hardcoded values with variables. (the script accepts space as the delimiter) @respon = $placesock-print(./test.pl \7741266\ \DEM EXPO\ \255.255.255.255\ \n); and i am doing this @respon =

How to reinstall CPAN?

2004-02-04 Thread Hemond, Steve
Hi folks, For some reason, when running CPAN I get to many problems (I installed Perl v. 5.8.3 this morning, don't know if it has an effect) cpan install HTML::Mason CPAN: Storable loaded ok LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP:

Re: How to reinstall CPAN?

2004-02-04 Thread Remo Sanges
cpan o conf init On Feb 4, 2004, at 8:36 PM, Hemond, Steve wrote: Hi folks, For some reason, when running CPAN I get to many problems (I installed Perl v. 5.8.3 this morning, don't know if it has an effect) cpan install HTML::Mason CPAN: Storable loaded ok LWP not available CPAN: Net::FTP

RE : [Perl-beginners] How to reinstall CPAN?

2004-02-04 Thread Hemond, Steve
That's what I did, but it didn't fix anything. I thought by removing the cpan directory it would then asks me the startup questions but it didn't. I'm still confused... Steve Hemond Programmeur Analyste / Analyst Programmer Smurfit-Stone, Ressources Forestières La Tuque, P.Q. Tel.: (819)

RE : How to reinstall CPAN?

2004-02-04 Thread Hemond, Steve
/usr/local# cpan o conf init CPAN: Storable loaded ok LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://cpan.chebucto.ns.ca/pub/CPAN/authors/01mailrc.txt.gz Going to read /usr/local/cpan/sources/authors/01mailrc.txt.gz Could not pipe[./gzip --decompress --stdout

Re: How to use the arguments to use() in the package being used

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Rob Dixon said: That's an interesting point Jeff. You're right that it's Module-import() instead of Module::import() as 'import' will be inherited in the (common) case that Module ISA Exporter. And also, 'Module' is sent as the first arg to import(). -- Jeff japhy Pinyan

RE : How to reinstall CPAN?

2004-02-04 Thread Hemond, Steve
Ok I have figured something out. The initial configurations are held in /path/to/perl/lib/CPAN/Config.pm I have corrected the gzip, ftp, tar, etc.. lines so it points to the right absolute path to the binaries. It works now. Thanks a lot. Best regards, Steve Hemond Programmeur Analyste /

Re: formatting and syntax

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Michael S. Robeson II said: bob AGTGATGCCGACG fred ACGCATATCGCAT jon CAGTACGATTTATC R 1 20 A G U G A T G C C G A C G - - - - - - - bob A C G C A U A U C G C A U - - - - - - - fred C A G U A C G A U U U A U C - - - - - - jon The R 1 is static and should

Re: symbolic references

2004-02-04 Thread James Edward Gray II
On Feb 4, 2004, at 1:38 PM, David Byrne wrote: Greetings, Hello. I’m trying to generate a tree of nested hashes [of an arbitrary size]. I'm trying to run the code you posted, so I can see what the heck is going on. That's not going well for me either. laughs My processor usage spikes

FYI: 2 perl courses for additional guidance

2004-02-04 Thread Stuart White
Hi all, A few months ago before I started studying for the LSAT, I was trying to learn perl using Beginning Perl, and the expertise of users on this list. Well, that test prep put my perl learning on hold, and now that it's done, I'm back to working on my project. Anyway, the point of this

RE: sort -- following question: How to rearrange columns

2004-02-04 Thread Shiping Wang
Hello, With this sample data set, I have a different question. How can I rearrange columns such as this: before: col1col4col5col2col6col3 Abc 12.88 left1 15.7 Def 13.89 top 0 19.7 gef 14.89 left0 19.7

Re: RE : How to reinstall CPAN?

2004-02-04 Thread Wiggins d Anconia
/usr/local# cpan o conf init CPAN: Storable loaded ok LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://cpan.chebucto.ns.ca/pub/CPAN/authors/01mailrc.txt.gz Going to read /usr/local/cpan/sources/authors/01mailrc.txt.gz Could not pipe[./gzip --decompress --stdout

Re: symbolic references

2004-02-04 Thread David Byrne
Okay, sorry to be somewhat unclear with my question. Here’s some sample input data that may help to clear things up: ### node_id = 0 parent_node_id = N/A child_node_ids = 1, 2 node_id = 1 parent_node_id = 0 child_node_ids = 3, 4 node_id = 2 parent_node_id = 0

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

2004-02-04 Thread Johnson, Michael
CLASSIFICATION: UNCLASSIFIED Classification: UNCLASSIFIED -- 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 Am I?

2004-02-04 Thread Kenton Brede
On Wed, Feb 04, 2004 at 12:18:49PM -, Rob Dixon ([EMAIL PROTECTED]) wrote: Rob Dixon wrote: [stuff] Sorry guys. Just glad it wasn't anything too embarrassing :-/ /R I posted an intimate message to a lady friend of mine once to the Debian users list. I know how you feel, hehe. I

Re: symbolic references

2004-02-04 Thread James Edward Gray II
On Feb 4, 2004, at 4:19 PM, David Byrne wrote: Okay, sorry to be somewhat unclear with my question. Here’s some sample input data that may help to clear things up: See if this gets you going. It's one possible answer. James #!/usr/bin/perl use strict; use warnings; use Data::Dumper; my $tree

Make this into a script to parse?

2004-02-04 Thread Lone Wolf
I'm back to dealing with the main issue of a badly formatted file being brought down from an archaic system and needing to be cleaned up before being passed to another user or a database table. I have the code below, which pulls the whole file in and parse it line by line. That problem is still

Re: special vars

2004-02-04 Thread drieux
On Feb 4, 2004, at 10:23 AM, Rob Dixon wrote: [..] Disabling output buffering in Perl should be seen as a nicety that helps debugging, but not much else. Only a hardware solution can guard against losing power at the wrong time. Minor Nit, yes I know that the thread has been about disk and/or

Re: Make this into a script to parse?

2004-02-04 Thread wolf blaum
For Quality purpouses, Lone Wolf 's mail on Thursday 05 February 2004 00:52 may have been monitored or recorded as: I'm back to dealing with the main issue of a badly formatted file being brought down from an archaic system and needing to be cleaned up before being passed to another user or a

Re: Module for Country/Country Codes Lists

2004-02-04 Thread Randy W. Sims
On 2/4/2004 11:36 AM, Shlomi Fish wrote: Hi! My name is Shlomi Fish and I am a co-developer of the WWW::Form module: http://search.cpan.org/~bschmau/WWW-Form-1.13/ Benjamin Schmaus (WWW::Form's main developer) and I decided it would be a good idea for the module or an extension of it to

Re: Make this into a script to parse?

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Lone Wolf said: I'm back to dealing with the main issue of a badly formatted file being brought down from an archaic system and needing to be cleaned up before being passed to another user or a database table. I have the code below, which pulls the whole file in and parse it line by

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

2004-02-04 Thread wolf blaum
Hi, I like: Learning Perl by Randal Schwartz Tom Phoenix as a good introduction with tons of further references Programing Perl by Larry Wall, Tom Christiansen and Jon Orwant as the ultimate refernce and pillow Mastering Perl/Tk by Steve Lidie and Nancy Walsh for times when I dont have

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

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

Re: In what order does a program run..??

2004-02-04 Thread Randy W. Sims
On 2/4/2004 10:52 AM, [EMAIL PROTECTED] wrote: I'm new to PERL and am trying to learn by reading some PERL programs. My question is this - does PERL execute sequentially and skip around embedded subroutines or Does it execute them inline? In depth answer: perl reads in your source file and

RE: Make this into a script to parse?

2004-02-04 Thread Lone Wolf
I tried the my @fields and I did not get it to work, probably because my coding skills have not improved enough lately to be worthy of perl. Thank goodness I never said I had perfect code, because I would definitely be lying. I attached 2 files, one the beginning data, the other the .sql file

Re: Make this into a script to parse?

2004-02-04 Thread John McKown
On Wed, 4 Feb 2004, Jeff 'japhy' Pinyan wrote: snip foreach $i (@grok) { chomp($i); ($item_num,$item_desc,$b1,$b2,$b3,$b4,$cc,$vn,$qoh,$qc,$qor,$bc,$sc,$yp) = split(/\|/,$i); print FILE $inv|$item_num|$item_desc|$b1|$b2|$b3|$b4|$cc|$vn|$qoh|$qc|$qor|$bc|$it em_num|$sc|$yp\n;

removing all elements in an array

2004-02-04 Thread Markham, Richard
How can I simply remove all elements in an array, given that the array is global and a procedure defines the elements to where the total number of elements in this array could be very well be less. I have tried @array = (); but this seems to affect the arrary in that it wont take any element

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

2004-02-04 Thread Randy W. Sims
On 2/4/2004 10:17 PM, wolf blaum wrote: Hi, I like: Learning Perl by Randal Schwartz Tom Phoenix as a good introduction with tons of further references Programing Perl by Larry Wall, Tom Christiansen and Jon Orwant as the ultimate refernce and pillow Mastering Perl/Tk by Steve Lidie and

Re: removing all elements in an array

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Markham, Richard said: How can I simply remove all elements in an array, given that the array is global and a procedure defines the elements to where the total number of elements in this array could be very well be less. I have tried @array = (); but this seems to affect the arrary in

Re: Make this into a script to parse?

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, John McKown said: On Wed, 4 Feb 2004, Jeff 'japhy' Pinyan wrote: foreach $i (@grok) { chomp($i); ($item_num,$item_desc,$b1,$b2,$b3,$b4,$cc,$vn,$qoh,$qc,$qor,$bc,$sc,$yp) = split(/\|/,$i); print FILE $inv|$item_num|$item_desc|$b1|$b2|$b3|$b4|$cc|$vn|$qoh|$qc|$qor|$bc|$it

Re: removing all elements in an array

2004-02-04 Thread Randy W. Sims
On 2/4/2004 10:27 PM, Markham, Richard wrote: How can I simply remove all elements in an array, given that the array is global and a procedure defines the elements to where the total number of elements in this array could be very well be less. I have tried @array = (); but this seems to affect

Re: removing all elements in an array

2004-02-04 Thread wolf blaum
For Quality purpouses, Markham, Richard 's mail on Thursday 05 February 2004 04:27 may have been monitored or recorded as: How can I simply remove all elements in an array, given that the array is global and a procedure defines the elements to where the total number of elements in this array

Re: Make this into a script to parse?

2004-02-04 Thread wolf blaum
For Quality purpouses, Lone Wolf 's mail on Thursday 05 February 2004 04:23 may have been monitored or recorded as: Hi Thank goodness I never said I had perfect code, because I would definitely be lying. no worries - I post code to get feedback. Thats the whole ideaof learning it. I

Re: Make this into a script to parse?

2004-02-04 Thread wolf blaum
For Quality purpouses, wolf blaum 's mail on Thursday 05 February 2004 06:07 may have been monitored or recorded as: The script reads all files in the sql subdir of your home dir and produces the corrosponding filname.out in your homedir. shame on me: of course it reads all the files in the

Remote script execution

2004-02-04 Thread Thind, Aman
Hello Friends, I would be really grateful if someone could help me out with this. I want to write a script that when executed will get lots of details from 10 different Unix(AIX) and Windows(XP) boxes and generate a report. The details to be gathered about the machines include : 1) Names and

RE: Remote script execution

2004-02-04 Thread Charles K. Clarkson
Thind, Aman [EMAIL PROTECTED] wrote: : : Hello Friends, : : I would be really grateful if someone could help me out with : this. : : I want to write a script that when executed will get lots of : details from 10 different Unix(AIX) and Windows(XP) boxes and : generate a report. : : The details

RE: Remote script execution

2004-02-04 Thread Thind, Aman
Hello Charles, We have a 100 mbps LAN running tcp\ip...typical to company networks. Thanks Aman Thind -Original Message- From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Sent: 05 February 2004 11:31 To: [EMAIL PROTECTED] Subject: RE: Remote script execution Thind, Aman [EMAIL

RE: Remote script execution

2004-02-04 Thread Charles K. Clarkson
Thind, Aman [EMAIL PROTECTED] wrote: : : We have a 100 mbps LAN running tcp\ip...typical to company networks. : : -Original Message- : From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] : Sent: 05 February 2004 11:31 : To: [EMAIL PROTECTED] : Subject: RE: Remote script execution : :