Undefined symbol?

2004-01-23 Thread Mark Setzer
Hey there, Wasn't sure which mailing list to send this to but maybe someone can point me in the right direction. When perl is invoked (presumably by debian's dpkg command, since that's what causes the error), I get this message: /usr/bin/perl: relocation error: /usr/lib/perl5/auto/Locale/get

Re: Need help with a regex

2004-01-23 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > Thanks Jeff. I hope to try this out later today. I thought I had the > solution earlier this morning, but I ran into a problem. I hope this will > solve it ! Thanks again. > > >apples San Antonio Fruit > >oranges Sacramento Fruit > >pineappl

Re: interfacing with Python using Perl

2004-01-23 Thread Jeff 'japhy' Pinyan
On Jan 23, Andrew Gaffney said: >I don't know Python and I really have no desire to learn it, but I do >have a decent amount of experience with Perl. Is there a module(s) that >will let Perl interface with existing Python code/modules? Specifically, >I want to write a Perl program to use Gentoo Li

Re: String concatenation qn

2004-01-23 Thread Wiggins d'Anconia
wolf blaum wrote: For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 2004 17:52 may have been monitored or recorded as: hi,. hi i would like to quickly append a string to a variable. open NEWFH, "> $filename.new" or die "new procmailrc err"; where $filename has /tmp/xyz Anyth

Re: [meta] Please delete boilerplate! (was Re: Covert Date to week number)

2004-01-23 Thread John McKown
On Fri, 23 Jan 2004, Levon Barker wrote: > Except that John's boss is on the list too! > No, my boss is not UNIX or even Windows literate. He is a BOSS, not a GRUNT. He may, from years past, remember some COBOL (remember that?). If I told him that I was on a Perl list, he would think that I wa

interfacing with Python using Perl

2004-01-23 Thread Andrew Gaffney
I don't know Python and I really have no desire to learn it, but I do have a decent amount of experience with Perl. Is there a module(s) that will let Perl interface with existing Python code/modules? Specifically, I want to write a Perl program to use Gentoo Linux's Portage API which is written

Re: can i do it with perl ?

2004-01-23 Thread John McKown
On Fri, 23 Jan 2004, Dan Anderson wrote: > > Give me a little bit of time with a soldering iron, some wire, and a > laptop connected to your home network and your dishwasher and that can > be rectified. :-D > > -Dan I don't think that the lady who comes in and does my dishes is going to let y

Re: can i do it with perl ?

2004-01-23 Thread John McKown
On Fri, 23 Jan 2004, Joe Echavarria wrote: > > I there, > > I need to write a web database application using > perl, and i need a way that when the users logs into > the system i download all the information regarding > to the user to its local computer and make all the > transaction lo

Re: String concatenation qn

2004-01-23 Thread wolf blaum
For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 2004 17:52 may have been monitored or recorded as: > hi,. hi > i would like to quickly append a string to a variable. > open NEWFH, "> $filename.new" or die "new procmailrc err"; > where $filename has /tmp/xyz > > Anything reall

String concatenation qn

2004-01-23 Thread Ajey Kulkarni
hi,. i would like to quickly append a string to a variable. Suppose $filename has "/tmp/xyz after appending i want to get $filename as /tmp/xyz.NEW. I'm getting a ? for a . (period). I'm doing something like open NEWFH, "> $filename.new" or die "new procmailrc err"; where $filename has /tmp/xyz

Re: From 5.6.1 to 5.8.2: how preserve installed modules?

2004-01-23 Thread wolf blaum
Hi, i ont want to get involved in the religios questions: for the rest: > use PPM or CPAN.pm? - How can I get PPM to tell me everything that's > installed? ppm> query * #gives you the list of installed modules ppm> properties Mo::Dule #gives you a detailed discriptio of that installed modul

From 5.6.1 to 5.8.2: how preserve installed modules?

2004-01-23 Thread mcdavis941
Hi, I'm considering upgrading from ActiveState Perl 5.6.1 to 5.8.2 (in order to use the latest Apache and mod_perl, although that's kind of beside the point). Unfortunately, being a Perl beginner, I've installed CPAN modules by a variety of methods including: - manually downloading the .zip from

Re: can i do it with perl ?

2004-01-23 Thread wolf blaum
> Give me a little bit of time with a soldering iron, some wire, and a > laptop connected to your home network and your dishwasher and that can > be rectified. :-D I new that was a gentle list! I just dont have a dishwasher :( But given the traffic here I happily dont get much time to use dishes

Re: can i do it with perl ?

2004-01-23 Thread Dan Anderson
On Fri, 2004-01-23 at 18:07, wolf blaum wrote: > > I there, > Hi, > > I need to write a web database application using > > perl, and i need a way that when the users logs into > > the system i download all the information regarding > > to the user to its local computer and make all the > >

Re: can i do it with perl ?

2004-01-23 Thread Daniel Staal
--As off Saturday, January 24, 2004 12:07 AM +0100, wolf blaum is alleged to have said: I didnt find a way to do the dishes yet, anything else I ever tried works in perl. --As for the rest, it is mine. I'm sure you could do something with LEGO::RCX and a Mindstorms kit... ;-) Daniel T. Staal -

porting to windows NT

2004-01-23 Thread Johnson, Shaunn
Howdy: I want to move my perl script from Linux to Windows NT. The Linux script connects to Oracle via the DBI modules I have installed. I want to do the same on NT, but I'm not sure if the connection strings / values are the same. In the linux script: [snip] use strict; use diagnostics; use DB

Re: can i do it with perl ?

2004-01-23 Thread wolf blaum
> I there, Hi, > I need to write a web database application using > perl, and i need a way that when the users logs into > the system i download all the information regarding > to the user to its local computer and make all the > transaction locally. After that, when the user logs > out o

Re: modules and _DATA_

2004-01-23 Thread drieux
On Jan 23, 2004, at 2:47 PM, Eric Walker wrote: [..] while { do something;}     package ONE package stuff; 1;     package main    __DATA__     data stufff yes, one can do the reset back to package main. part of the reason I opt

Re: Loading and using modules using eval

2004-01-23 Thread drieux
On Jan 23, 2004, at 1:23 PM, Papo Napolitano wrote: [..] To tell me I have to do: &TextFile::process('file1.txt', '1'); &TextFile::process('file2.csv', '2'); &XMLFile::process('file3.xml', 'this and that'); [..] Why not try something a bit more vanilla where one does the use SomeModu

Re: modules and _DATA_

2004-01-23 Thread Eric Walker
On Fri, 2004-01-23 at 14:46, drieux wrote: On Jan 23, 2004, at 1:36 PM, Eric Walker wrote: [..] > > when I tried to add a package to it, I did some test and its not > reading > the DATA anymore. Is there a certain order? [..] How did you put the package in?

RE: complex data file parsing

2004-01-23 Thread Hughes, Andrew
Thanks so much. I've been tinkering around with this all afternoon. I think that it is there. I'm going to mess around with it more over the weekend. I'll let you know how it goes. Thanks so much, Wolf! Andrew -Original Message- From: wolf blaum [mailto:[EMAIL PROTECTED] Sent: Friday

RE: can i do it with perl ?

2004-01-23 Thread Bob Showalter
Joe Echavarria wrote: > I there, > > I need to write a web database application using > perl, and i need a way that when the users logs into > the system i download all the information regarding > to the user to its local computer and make all the > transaction locally. After that, when t

can i do it with perl ?

2004-01-23 Thread Joe Echavarria
I there, I need to write a web database application using perl, and i need a way that when the users logs into the system i download all the information regarding to the user to its local computer and make all the transaction locally. After that, when the user logs out of the system all

Re: modules and _DATA_

2004-01-23 Thread Eric Walker
On Fri, 2004-01-23 at 14:43, Randy W. Sims wrote: On 1/23/2004 4:36 PM, Eric Walker wrote: > > when I tried to add a package to it, I did some test and its not reading > the DATA anymore. Is there a certain order? __DATA__ must be in package main; #!perl

Re: modules and _DATA_

2004-01-23 Thread drieux
On Jan 23, 2004, at 1:36 PM, Eric Walker wrote: [..] when I tried to add a package to it, I did some test and its not reading the DATA anymore. Is there a certain order? [..] How did you put the package in? ciao drieux --- #!/usr/bin/perl -w use strict; my $foo

Re: modules and _DATA_

2004-01-23 Thread Randy W. Sims
On 1/23/2004 4:36 PM, Eric Walker wrote: when I tried to add a package to it, I did some test and its not reading the DATA anymore. Is there a certain order? __DATA__ must be in package main; #!perl use strict; use warnings; while () { print; } package Test; sub a {} 1; package main; # DATA mus

Re: modules and _DATA_

2004-01-23 Thread drieux
On Jan 23, 2004, at 1:27 PM, Eric Walker wrote: I have some code I want to add a package in the same file. I already have some _DATA_ in the file. Currently, the code is not seeing the _DATA_. How can I add a package in the same file then. [..] since the __DATA__ vice _DATA_ h

Re: modules and _DATA_

2004-01-23 Thread Eric Walker
On Fri, 2004-01-23 at 14:34, James Edward Gray II wrote: On Jan 23, 2004, at 3:27 PM, Eric Walker wrote: > I have some code I want to add a package in the same file. I already > have some _DATA_ in the file. Currently, the code is not seeing the > _DATA_. How can I add a pa

Re: modules and _DATA_

2004-01-23 Thread James Edward Gray II
On Jan 23, 2004, at 3:27 PM, Eric Walker wrote: I have some code I want to add a package in the same file. I already have some _DATA_ in the file. Currently, the code is not seeing the _DATA_. How can I add a package in the same file then. I believe your DATA tag at the end is the problem. It'

modules and _DATA_

2004-01-23 Thread Eric Walker
I have some code I want to add a package in the same file. I already have some _DATA_ in the file. Currently, the code is not seeing the _DATA_. How can I add a package in the same file then. Thanks perlknucklehead example: while { do something } _DATA_ this is my data section

Loading and using modules using eval

2004-01-23 Thread Papo Napolitano
Hi all, I have this piece of code: my @modules = ( 'Module1', 'Module2', 'Module3', 'ModuleX', 'ModuleY', 'Blah', ); my $param1 = "whatever"; my $param2 = 0; for my $module (@modules) { $param2++; eval("require $module"); if ($@) { print "$module Not found\n"; } else { eval("&${

Re: complex data file parsing

2004-01-23 Thread wolf blaum
Hi, > As far as your follow up question on the B lines, "only line with a B in > the beginning in set?," I'm not sure if I understand. If you mean that > there will only be 1 line per order (set of lines A-T) with a B in the > first position, you are correct. yes, thats what I meant. Sorry abou

Re: [meta] Please delete boilerplate! (was Re: Covert Date to week number)

2004-01-23 Thread Levon Barker
Except that John's boss is on the list too! On Fri, 2004-01-23 at 14:37, John McKown wrote: > Unfortunately, if the person is writing from work, the disclaimer is > likely required by his employer. I know that I have a similar one at work. > And not including it is grounds for termination . > >

Re: [meta] Please delete boilerplate! (was Re: Covert Date to week number)

2004-01-23 Thread John McKown
Unfortunately, if the person is writing from work, the disclaimer is likely required by his employer. I know that I have a similar one at work. And not including it is grounds for termination . The only way around this is to use a personal email, like I do. But he may need the help for work and

Re: Array creation with a existing variable

2004-01-23 Thread Randal L. Schwartz
> "Ravi" == Ravi Malghan <[EMAIL PROTECTED]> writes: Ravi> Hi: I have a existing variable called $router which is Ravi> "192.168.1.1". I want to create a array which looks Ravi> like @Counter192.168.1.1. No, you don't. You really, really don't. You may think you do, if you're bringing tech

Re: Convert Date to week number

2004-01-23 Thread Rob Dixon
Bob Showalter wrote: > > ISO8601 defines a standard, but not everyone follows it. See: > > http://www.mcs.vuw.ac.nz/technical/software/SGML/doc/iso8601/ISO8601.html > > Excerpt: > > "An ordinal date is identified by a given day in a given year. A week is > identified by its number in a given year.

Re: Convert Date to week number

2004-01-23 Thread Rob Dixon
Timwrote: > > At 03:16 PM 1/23/04 +, you wrote: > >... > >Why not write it yourself? > > > >You need to know: > > > >- Which day of the week is the 'first'. > > > >- Which was the first week of the year that had four or more days. > > That's week one. > > > >Then do the sums/arithmetic/math/m

Re: Array creation with a existing variable

2004-01-23 Thread Wiggins d Anconia
Please bottom post... > True. Since the value(s) for @Counter$router is going > to be array, manipulating that hash was making things > complex for me. > > If I use a hash (%Counter), what do I have to do such > that the resulting value for $Counter{$router} is an > array. > You still haven't t

Re: Array creation with a existing variable

2004-01-23 Thread Ravi Malghan
I may have found the answer, I could use @{$Counter{$router}} . I will try this. Thanks Ravi --- Ravi Malghan <[EMAIL PROTECTED]> wrote: > True. Since the value(s) for @Counter$router is > going > to be array, manipulating that hash was making > things > complex for me. > > If I use a hash (%Coun

Re: Array creation with a existing variable

2004-01-23 Thread Ravi Malghan
True. Since the value(s) for @Counter$router is going to be array, manipulating that hash was making things complex for me. If I use a hash (%Counter), what do I have to do such that the resulting value for $Counter{$router} is an array. Thanks Ravi --- Wiggins d Anconia <[EMAIL PROTECTED]> wrote

Re: Array creation with a existing variable

2004-01-23 Thread Wiggins d Anconia
> Hi: I have a existing variable called $router which is > "192.168.1.1". I want to create a array which looks > like @Counter192.168.1.1. > > @Counter.$router does not seem to work. > > Thanks in advance > Ravi The first question is why? I suspect first that the dots in the name of the var

Array creation with a existing variable

2004-01-23 Thread Ravi Malghan
Hi: I have a existing variable called $router which is "192.168.1.1". I want to create a array which looks like @Counter192.168.1.1. @Counter.$router does not seem to work. Thanks in advance Ravi __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool

RE: Convert Date to week number

2004-01-23 Thread Bob Showalter
Tim wrote: > At 03:16 PM 1/23/04 +, you wrote: >> ... >> Why not write it yourself? >> >> You need to know: >> >> - Which day of the week is the 'first'. >> >> - Which was the first week of the year that had four or more days. >> That's week one. >> >> Then do the sums/arithmetic/math/ma

Re: Convert Date to week number

2004-01-23 Thread Tim
At 03:16 PM 1/23/04 +, you wrote: ... Why not write it yourself? You need to know: - Which day of the week is the 'first'. - Which was the first week of the year that had four or more days. That's week one. Then do the sums/arithmetic/math/mathematics/calculations (what /do/ people prefer?)

Re: Learning to use map and grep

2004-01-23 Thread Rob Dixon
Paul Kraus wrote: > > This is a simple bit of code that scans through a file and determines the > width setting for columns that will eventually be written out using > spreadsheet::writexcel. It works fine but I am curious if there is a way to > do it with map or grep that would be better? This is

Re: reading a httpd.conf file

2004-01-23 Thread Wiggins d Anconia
> Hello everyone, > > I have a little issue that I am sure someone has come across here > once before and was wondering if I can get some pointers. > > I am trying to read and grab values from a "messy" httpd.conf > file. What I am trying to do is grab the ServerName value and > Docum

Re: Need help with a regex

2004-01-23 Thread stuart_clemons
Thanks Jeff. I hope to try this out later today. I thought I had the solution earlier this morning, but I ran into a problem. I hope this will solve it ! Thanks again. "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> 01/23/2004 10:34 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED]

Re: Need help with a regex

2004-01-23 Thread Jeff 'japhy' Pinyan
On Jan 23, [EMAIL PROTECTED] said: >This newbie needs help with a regex. Here's what the data from a text >file looks like. There's no delimiter and the fields aren't evenly spaced >apart. > >apples San Antonio Fruit >oranges Sacramento Fruit >pineapples Honolulu

Re: Simple Perl code/syntax question

2004-01-23 Thread Ricardo SIGNES
* Luinrandir Hernsen <[EMAIL PROTECTED]> [2004-01-23T09:38:12] > Hallo everyone and thank you for your previous help > > in basic the code would be > Select Case > ... > end select > > how is this done in perl? Well, this is a common question. In fact, it's a frequently asked one with an entry

Re: Simple Perl code/syntax question

2004-01-23 Thread Wiggins d Anconia
> Hallo everyone and thank you for your previous help > > in basic the code would be > > for x=1 to 100 > Select Case > Case=10,20,30,40,50,60,70,80,90 > then do this > else >else do this > end select > next x > > how is this done in perl? > > foreach (10,20,30,40,50,60

RE: Use Strict Error

2004-01-23 Thread Wiggins d Anconia
Please bottom post. > 1. You are missing ";" > Type > `egrep $name testing.txt`; > And not > 'egrep $name testing.txt' > > Not the backticks and not quotes ... > There's also no reason to use backticks in void context. perldoc -f system Please use full paths, error check, etc. if you are goi

Re: Use Strict Error

2004-01-23 Thread Rob Dixon
Bill Jastram wrote: > > When I use the following portion of Perl code: > __ > > #!/usr/bin/perl > # use with: > # perl IfThenElse tfcfam (Use all of this at the command line!) > > use strict; > use warnings; > > print "Search by name: "; > > my $name

RE: Use Strict Error

2004-01-23 Thread NYIMI Jose (BMB)
1. You are missing ";" Type `egrep $name testing.txt`; And not 'egrep $name testing.txt' Not the backticks and not quotes ... HTH, José. -Original Message- From: Bill Jastram [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 4:00 PM To: [EMAIL PROTECTED] Subject: Use Strict Err

Re: Convert Date to week number

2004-01-23 Thread Rob Dixon
Neill Taylor wrote: > > Is their a way in PERL to covert a date to a week number Why not write it yourself? You need to know: - Which day of the week is the 'first'. - Which was the first week of the year that had four or more days. That's week one. Then do the sums/arithmetic/math/mathemati

Use Strict Error

2004-01-23 Thread Bill Jastram
When I use the following portion of Perl code: __ #!/usr/bin/perl # use with: # perl IfThenElse tfcfam (Use all of this at the command line!) use strict; use warnings; print "Search by name: "; my $name = ; 'egrep $name testing.txt' #my(@col1, @c

Simple Perl code/syntax question

2004-01-23 Thread Luinrandir Hernsen
Hallo everyone and thank you for your previous help in basic the code would be for x=1 to 100 Select Case Case=10,20,30,40,50,60,70,80,90 then do this else else do this end select next x how is this done in perl? foreach (10,20,30,40,50,60,70,80,90); { do this; } I

RE: complex data file parsing

2004-01-23 Thread Hughes, Andrew
Thanks for the information. That was much more than I expected. You right about the T line. That was a typo. The T is in the firth position of the last line of each order block. As far as your follow up question on the B lines, "only line with a B in the beginning in set?," I'm not sure if I u

[meta] Please delete boilerplate! (was Re: Covert Date to week number)

2004-01-23 Thread Randal L. Schwartz
> "Neill" == Neill Taylor <[EMAIL PROTECTED]> writes: Neill> Is their a way in PERL to covert a date to a week number Neill> Cheers Neill> Neill Neill> IMPORTANT NOTICE This email (including any Neill> attachments) is meant only for the intended recipient. It may Neill>

Re: Usage of Net:Telnet

2004-01-23 Thread Owen
On Fri, 23 Jan 2004 13:24:24 - "Singh, Ajit p" <[EMAIL PROTECTED]> wrote: > Thanks Owen for your reply. > > that was a typo, however i m getting the below error message now.. > > $t = new Net::Telnet (Timeout => 10, > Input_log => $inlogfileg, >

Haiku Activestate Slashdot

2004-01-23 Thread Paul Kraus
http://slashdot.org/articles/04/01/22/2349200.shtml?tid=126&tid=145&tid=156&; tid=162&tid=99 Paul Kraus --- PEL Supply Company Network Administrator --- 800 321-1264 Toll Free 216 267-5775 Voice 216 267-6176 Fax www.pelsupply.com -

RE: Need help comparing lines in two files

2004-01-23 Thread stuart_clemons
Thanks Michael. I'll take a look at those modules and see if my Perl skills are sufficient to understand how to use them. Thanks again. EUROSPACE SZARINDAR <[EMAIL PROTECTED]> 01/23/2004 02:47 AM To [EMAIL PROTECTED] cc Perl Beginners <[EMAIL PROTECTED]> Subject RE: Need help comparing lin

reading a httpd.conf file

2004-01-23 Thread chad kellerman
Hello everyone, I have a little issue that I am sure someone has come across here once before and was wondering if I can get some pointers. I am trying to read and grab values from a "messy" httpd.conf file. What I am trying to do is grab the ServerName value and DocumentRoot value for

RE: Need help with a regex

2004-01-23 Thread stuart_clemons
Thanks very much Tim. I just did a quick test on my real file and it worked perfectly. I definitely still have a lot to learn with both Perl and regex's, so I really appreciate the explanation as well. Though your script is very compact, I learned a lot from it. Such as how you initialized

Re: Usage of Net:Telnet

2004-01-23 Thread Owen
On Fri, 23 Jan 2004 11:45:08 - "Singh, Ajit p" <[EMAIL PROTECTED]> wrote: >Timeout => $secs), > Prompt => 'W9-BAS-01'); What is the ) doing on line 17? -- Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

RE: Need help comparing lines in two files

2004-01-23 Thread EUROSPACE SZARINDAR
Hi Stuart, Have a look on CPAN (www.cpan.org) there are two wonderfull packages to do exactely what you are dreaming of : Algorithm::Diff Text::ParagraphDiff Have a nice day Michel -Message d'origine- De: Dan Anderson [mailto:[EMAIL PROTECTED] Date: vendredi 23 janvier 2004

RE: Usage of Net:Telnet

2004-01-23 Thread Singh, Ajit p
Hello Friends, I am trying to get the prompt parameter right for my Telnet connection. Doesnt seem to be working... can somebody help me out with this ... The prompt from my remote host(cisco box) is as shown below: W9-BAS-01> $t = new Net::Telnet (Timeout => 10,

Re: Reading tab delimited File & sort everything according item 5 of every line

2004-01-23 Thread Owen
On Fri, 23 Jan 2004 09:36:00 +0100 Bjorn Van Blanckenberg <[EMAIL PROTECTED]> wrote: > let say that the file contains these items (every item is seperated > with a tab) > > one title state name code1 number > two title2 state2 name2 code2 number2 > one title3 state3 name3

Re: Reading tab delimited File & sort everything according item 5 of every line

2004-01-23 Thread Randy W. Sims
On 01/23/04 03:36, Bjorn Van Blanckenberg wrote: the thing i'am looking for is that it is sorted by item 5 and writes back to the file with an extra line if item 5 is different A variation on the Swartzian transform: (read from bottom up) #!/usr/bin/perl use strict; use warnings; print map { $_-

Reading tab delimited File & sort everything according item 5 of every line

2004-01-23 Thread Bjorn Van Blanckenberg
let say that the file contains these items (every item is seperated with a tab) one title state name code1 number two title2 state2 name2 code2 number2 one title3 state3 name3 code3 number3 four title4 state4 name4 code4 number4 six title5 state5 name5 c

Re: Date and Time

2004-01-23 Thread Owen
On Thu, 22 Jan 2004 17:06:58 -0800 "Larry Guest" <[EMAIL PROTECTED]> wrote: > > But rsync does not know how to handle this string, I think when its > passed to rsync its not text as I see it on the screen. It cant make > the dir and pukes. > > I have seen a bunch of stuff out there for sprintf

Re: Covert Date to week number

2004-01-23 Thread Owen
On Thu, 22 Jan 2004 19:28:24 + [EMAIL PROTECTED] wrote: > Is their a way in PERL to covert a date to a week number > Try this; #!/usr/bin/perl use Date::Calc qw(Week_Number Week_of_Year); @t=localtime; $week = Week_Number($t[5]+1900,$t[4]+1,$t[3]); #Deprecated print " From Date