Archive::TAR with better performance ?

2004-03-10 Thread EUROSPACE SZARINDAR
Hi all, Is there a way to tar files without using the Archive::TAR module which is known to be very slow and ressource guzzler (comment in the faq). I am looking for a Perl module directly linked to the C library of tar to have almost the same performance and the power of perl ? Thanks in adv

Image::Magick Montage usage

2004-03-10 Thread Taylor James
Hi there, I have 189 gif images at 200x200 and I want to combine them in a 3x61 arrangement, ending up with a 600x12200 gif. Firstly is this just crazy talk? I realise this is a large image, but I've dealt with larger in the past. Secondly, what the hell am I doing wrong!? My code is below. I ha

RE: urgent need for installing perl 5.8.0

2004-03-10 Thread Nilay Puri, Noida
Hi, I downloaded perl 5.8.0 from search.cpan.org While running make , I am getting this error : Can anyone throw some light about the cause: Making Errno (nonxs) make[1]: Entering directory `/perl-5.8.0/ext/Errno' Makefile out-of-date with respect to ../../lib/Config.pm ../../config.h Cl

Change file names

2004-03-10 Thread Tomas Corral
Hi all: Because '@' is a special character for many interpreters. I'm trying to change the names of 100 files deleting the '@' symbol. The filenames look like this: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Thanks in advance. _:: A newbie ::_

DBI - an easier way??

2004-03-10 Thread Mark Martin
Hi, bin using DBI for a while for data warehousing type stuff and up till now I've had to change data on the fly as it moves from one database to another : my $sql01 = qq{SELECT FIELD01 .FIELDn FROM PRODUCTION_TABLE}; my $sql02 = qq{INSERT INTO ACC_LEDG VALUES (?,?,?); my $sth =

Re: Archive::TAR with better performance ?

2004-03-10 Thread Wiggins d Anconia
> > Hi all, > > Is there a way to tar files without using the Archive::TAR module which is > known to be very slow and ressource guzzler (comment in the faq). > > I am looking for a Perl module directly linked to the C library of tar to > have almost the same performance and the power of per

RE: Change file names

2004-03-10 Thread EUROSPACE SZARINDAR
> -Message d'origine- > De: Tomas Corral [mailto:[EMAIL PROTECTED] > Date: mercredi 10 mars 2004 13:07 > À: [EMAIL PROTECTED] > Objet: Change file names > > > Hi all: > > Because '@' is a special character for many interpreters. I'm > trying to > change the names of 100 files deleting

Re: Image::Magick Montage usage

2004-03-10 Thread Wiggins d Anconia
> > Hi there, > > I have 189 gif images at 200x200 and I want to combine them in a 3x61 > arrangement, ending up with a 600x12200 gif. Firstly is this just crazy > talk? I realise this is a large image, but I've dealt with larger in the > past. > As long as you have the resources... > Secondly

True IP behind a router?

2004-03-10 Thread Bee
Hi, Is there any modules can check my true IP( NOT 192.168.x.x ) I am on while I am behind a router? Thanks in advise

Re: True IP behind a router?

2004-03-10 Thread Andrew Gaffney
Bee wrote: > Hi, > > Is there any modules can check my true IP( NOT 192.168.x.x ) I am on while I am > behind > a router? You can use a Perl module (or external system call) to go to http://privacy.net/ which will show the router's IP at the top of the page. You can then use regex to grab the

Re: True IP behind a router?

2004-03-10 Thread Wiggins d Anconia
> > Hi, > > Is there any modules can check my true IP( NOT 192.168.x.x ) I am on while I am behind > a router? > > Thanks in advise > Are you the admin of the router? Aka is this a home router? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: backreferences

2004-03-10 Thread James Edward Gray II
On Mar 9, 2004, at 9:00 PM, Stuart White wrote: That got me started. I do have a question though about your regex. Good, better to ask and know, I think. Let's see if we can clear it up... This backreference is $1, and matches the team abbreviation. ([A-Z0-9 -]+) This one is $2, and matches th

Re: True IP behind a router?

2004-03-10 Thread ????
> > > > Are you the admin of the router? Aka is this a home router? YES... but... any difference ?! > > http://danconia.org > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: True IP behind a router?

2004-03-10 Thread Wiggins d Anconia
> > > > > > > > Are you the admin of the router? Aka is this a home router? > > YES... but... any difference ?! > > You may want to check out the source for ddclient, it knows how to request the IP from a number of different routers. It then uses this request to update a dyn-dns record. I h

Re: True IP behind a router?

2004-03-10 Thread drieux
On Mar 10, 2004, at 6:26 AM, Bee wrote: Is there any modules can check my true IP( NOT 192.168.x.x ) I am on while I am behind a router? The problem here is that it is all dependent upon which type of DSL Router one is working with, and what the vendor offered in the way of an interface. One way t

Sockets, Why can't I do this?

2004-03-10 Thread Motherofperls
I get an unknown error from the command prompt. My goal was to fetch a list of numbers for the socket port. Maybe it's just an XP problem ?? #!perl -w my$hostprog = 'localhost'; if(open(LOG, ">>./log.txt")){ }else{print "Couldn't open LOG";} use IO::Socket; use LWP::Simple; #get a list of socket n

Re: True IP behind a router?

2004-03-10 Thread ????
That's a method, thank you. But I guess that 's not a good way for what I am going to do.. I'll try to scan my true IP by every 1 minute for a week. If that's difference from before, I'll log it down and suppose I got disconnected and reconnected.. I'll use this as a simple survey on tracki

Re: Reading File & grep according item 5 and sorting

2004-03-10 Thread Bjorn Van Blanckenberg
On 7-mrt-04, at 00:00, R. Joseph Newton wrote: Bjorn Van Blanckenberg wrote: On 3-mrt-04, at 09:56, R. Joseph Newton wrote: I understand how the code works It reads the file end split every line according to the tabs and then sorts everything. For returning the info it looks at colomn 5 (1-base

RE: Image::Magick Montage usage

2004-03-10 Thread Taylor James
Wiggins d Anconia wrote: > > HTH, > Indeed, you're right of course. I have a hunch that this is more than a resource issue, but of course I should try using less images first to eliminate it as a possibility. I'll try later and let you know how I get on. I was kind of hoping someone would spot

RE: Image::Magick Montage usage

2004-03-10 Thread Wiggins d Anconia
> Wiggins d Anconia wrote: > > > > HTH, > > > > Indeed, you're right of course. I have a hunch that this is more than a > resource issue, but of course I should try using less images first to > eliminate it as a possibility. I'll try later and let you know how I get on. > > I was kind of hopi

RE: Image::Magick Montage usage

2004-03-10 Thread Taylor James
Wiggins d Anconia wrote: > I also notice that you catch the return result of 'Write' and then > warn > if it is positive, but 'Write' returns the number of images written, > so > it should be positive. I suspect this is because it is just test code, > but you will likely need to correct that befo

Re: backreferences

2004-03-10 Thread Stuart White
--- James Edward Gray II <[EMAIL PROTECTED]> > > And this one I'd think should be $3, and match > Steal > > or Assist etc., but the results don't say that. > > > > (?:Steal|Assist|Block|replaced by) > > Stuart, I love your questions. ;) You're always > missing one tiny > piece of knowledge

RE: urgent need for installing perl 5.8.0

2004-03-10 Thread david
Nilay Puri wrote: > > I downloaded perl 5.8.0 from search.cpan.org > > While running make , I am getting this error : > > Can anyone throw some light about the cause: > Making Errno (nonxs) > make[1]: Entering directory `/perl-5.8.0/ext/Errno' > Makefile out-of-date with respect to ../.

RE: Image::Magick Montage usage

2004-03-10 Thread Taylor James
Taylor James wrote: > > Another good idea, which I shall try tonight along with the others, > or this afternoon if I can get Image::Magick installed on my work PC. > That's another story! > Done that, and revised the code as discussed earlier and it still seems to be hangign at the same point (j

RE: Sockets, Why can't I do this?

2004-03-10 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : : I get an unknown error from the command prompt. Care to share the error with us? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: backreferences

2004-03-10 Thread James Edward Gray II
On Mar 10, 2004, at 10:20 AM, Stuart White wrote: Geez, I can't recall them covering (?: ) in my books...D'oh! It may not have. It's not super common to see it thrown about. Most people just use (...), I would guess. The part about it grouping and capturing things makes sense, as it's the "cou

Re: backreferences

2004-03-10 Thread Stuart White
--- James Edward Gray II <[EMAIL PROTECTED]> wrote: > On Mar 10, 2004, at 10:20 AM, Stuart White wrote: > > > Geez, I can't recall them covering (?: ) in my > > books...D'oh! > > It may not have. It's not super common to see it > thrown about. Most > people just use (...), I would guess. >

Replace a string in a text file

2004-03-10 Thread Mr Mojo
Hello, I have a text file (texst1.txt) that reads: The quick brown fox jumped over the lazy dog. I would like to replace the word fox with coyote. Is there an easier/simpler/cooler way to do this? #!/usr/bin/perl -w use strict; open (FILE, "test1.txt"); open (NEWFILE, ">>tmp"); while () {

Re: Read from tape device

2004-03-10 Thread zsdc
[EMAIL PROTECTED] wrote: I am trying to read some data from af unix tape device. The have several files with "end of file markers". Can I read from tape devices at all? I tried "open" on the device and this one reads all files on the tape into the first file and then hangs. Is it my code (I know

Re: Replace a string in a text file

2004-03-10 Thread James Edward Gray II
On Mar 10, 2004, at 12:56 PM, Mr Mojo wrote: Hello, I have a text file (texst1.txt) that reads: The quick brown fox jumped over the lazy dog. I would like to replace the word fox with coyote. Is there an easier/simpler/cooler way to do this? #!/usr/bin/perl -w use strict; open (FILE, "test1.

RE: Replace a string in a text file

2004-03-10 Thread Jayakumar Rajagopal
Use this from unix prompt : sed s/fox/coyote/g test.txt > tmp --Jay -Original Message- From: Mr Mojo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 1:57 PM To: [EMAIL PROTECTED] Subject: Replace a string in a text file Hello, I have a text file (texst1.txt) that reads: The

Re: Replace a string in a text file

2004-03-10 Thread John W. Krahn
James Edward Gray II wrote: > > On Mar 10, 2004, at 12:56 PM, Mr Mojo wrote: > > > > I have a text file (texst1.txt) that reads: > > > > The quick brown fox jumped over the lazy dog. > > > > I would like to replace the word fox with coyote. Is there an > > easier/simpler/cooler way to do this? >

How to make object properties accessible by same-named function

2004-03-10 Thread Michael C. Davis
Hi, I saw this neat trick while looking at AppConfig.pm on CPAN. It lets you define configuration variables in a file and, having read them, access them either by name-as-string OR as a function having the name of the variable, like so (copied from the CPAN documentation): # create/define com

Re: How to make object properties accessible by same-named function

2004-03-10 Thread Wiggins d Anconia
> Hi, I saw this neat trick while looking at AppConfig.pm on CPAN. It lets > you define configuration variables in a file and, having read them, access > them either by name-as-string OR as a function having the name of the > variable, like so (copied from the CPAN documentation): > > # cre

Re: How to make object properties accessible by same-named function

2004-03-10 Thread Paul Johnson
On Wed, Mar 10, 2004 at 02:16:50PM -0600, Michael C. Davis wrote: > Hi, I saw this neat trick while looking at AppConfig.pm on CPAN. It lets > you define configuration variables in a file and, having read them, access > them either by name-as-string OR as a function having the name of the > variab

MMOE (Mega Multiplayer Online Experience)

2004-03-10 Thread Jacob Chapa
Flash Front-end. Perl or possibly ASP back - end. Will be a very fun project. if anyone wants details email me. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Change file names

2004-03-10 Thread John W. Krahn
Eurospace Szarindar wrote: > > > De: Tomas Corral [mailto:[EMAIL PROTECTED] > > > > Because '@' is a special character for many interpreters. I'm > > trying to > > change the names of 100 files deleting the '@' symbol. The filenames > > look like this: > > > > [EMAIL PROTECTED] > > [EMAIL PROTECTE

Looking at .ini files

2004-03-10 Thread Meneses, Alden
Hello, How do I go about looking at remote hosts .ini file? I am looking for a particular value inside the file to the accord of "TERM=" I would like to save a list of computer names with the values on a separate file. Can I do this in PERL? Can you point me in the right direction? Thanks in

Re: Change file names

2004-03-10 Thread Paul Johnson
On Wed, Mar 10, 2004 at 02:42:39PM +0100, EUROSPACE SZARINDAR wrote: > > -Message d'origine- > > De: Tomas Corral [mailto:[EMAIL PROTECTED] > > > > Because '@' is a special character for many interpreters. I'm trying > > to change the names of 100 files deleting the '@' symbol. The > > Tr

RE: Looking at .ini files

2004-03-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Meneses, Alden wrote: > Hello, > > How do I go about looking at remote hosts .ini file? I am looking for > a particular value inside the file to the accord of "TERM=" > You would need read capabiliity (obviously) on the remote machine and I am assuming you know where that file reside

Re: Replace a string in a text file

2004-03-10 Thread zsdc
Mr Mojo wrote: I have a text file (texst1.txt) that reads: The quick brown fox jumped over the lazy dog. I would like to replace the word fox with coyote. Is there an easier/simpler/cooler way to do this? You can run this from the command line: perl -pi -es/fox/coyote/g test1.txt Or if you w

Re: Replace a string in a text file

2004-03-10 Thread zsdc
Jayakumar Rajagopal wrote: Use this from unix prompt : sed s/fox/coyote/g test.txt > tmp Hey, this is not [EMAIL PROTECTED] mailing list! ;) -- ZSDC Perl and Systems Security Consulting -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Nucleotide Sequencing

2004-03-10 Thread Sumit Kaur
I am a fresh starter of Perl and I need to write a script that perform the same function done by the following JavaScript. I know it is wrong to ask for code but I am in urgent requirement of this. The javascript code is as follows