Re: Array or arrays

2005-10-04 Thread Philipp Traeder
On Tuesday 04 October 2005 07:48, Jabir Ahmed wrote: [..] > my @details=split('\t',$line); > [EMAIL PROTECTED]; > $reccnt+=1; [..] > > How do i read the values of @details trought the > $record array; > i want something like this > print $record[1][1] ==> this would refer to

Re: Perl CGI and URL rewriting returning source instead of execution

2005-08-29 Thread Philipp Traeder
On Monday 29 August 2005 19:20, Blake Girardot wrote: > I have a perl cgi application, not mod_perl, but an actual .cgi application > running under apache on OS X. > > As many web apps, it makes use of some long get requests with variable > labels and values. For example: > > http://server.com/cgi-

Re: Anonymous array of hashes question

2005-08-04 Thread Philipp Traeder
On Friday 05 August 2005 01:37, Jason Normandin wrote: [..] > > if ($protocol =~ /PING REQUEST/) { > push @{$pingRequests{$destination}}, { > time => $time, > sequenceNumber=>$sequenceNumber > }; > } > elsif ($protocol =~ /PING RESPONSE/) { > push @{$pi

Re: TERM::ReadLine and program flow question

2005-02-08 Thread Philipp Traeder
On Tuesday 08 February 2005 18:57, Scott R. Godin wrote: > This is my first time attempting to use Term::ReadLine to get input from > the commandline while a script is running. I grok the basics of it, but > am stumbling over the implementation of it. Let me illustrate: > > READLINE: > { > # closur

Re: Checking last character of string for punctuation

2005-02-02 Thread Philipp Traeder
On Wednesday 02 February 2005 22:39, Chris Schults wrote: > Howdy all. I'm a newbie with a newbie question. I assume that I'm in the > right place. Yes, thie does sound consistent. ;-) > I need to update some code a developer programmed for my organization. > > The purpose of the code is really b

Re: file and dir time stamps

2005-01-03 Thread Philipp Traeder
On Monday 03 January 2005 21:48, Thomas Browner wrote: > I have a hard time writing a script that look at file and directories > time and date stamp then delete any thing that is so many days old. if > someone would give me a good starting point. You might want to take a look at File::Find and the

Re: subclassing (?) package

2004-12-19 Thread Philipp Traeder
On Sunday 19 December 2004 20:48, JupiterHost.Net wrote: > Hello group, Hi, > I'm trying to subclass a module (at least I think its what is called > subclassing...) I'm not sure, but I think subclassing is the appropriate term for this ;-) > This example below works but I'd like to package GD::

Re: If you´re in the mood, help me.

2004-12-10 Thread Philipp Traeder
On Friday 10 December 2004 22:24, [EMAIL PROTECTED] wrote: > Hi guys, Hi Diogo, > > As you know, i´m having some problems to make this thing work. I have to > write a script that automatically sends a code and get the some > information according to that code. I mean, this script has to > automat

Re: Need help with creating a web forwarding site.

2004-11-14 Thread Philipp Traeder
On Sunday 14 November 2004 12:25, Zeus Odin wrote: > "Philipp Traeder" <[EMAIL PROTECTED]> wrote in message... > > > I guess LWP::UserAgent might be interesting in this context, but I > > wouldn't > > > try to parse the responses you get. Why do

Re: Need help with creating a web forwarding site.

2004-11-13 Thread Philipp Traeder
On Saturday 13 November 2004 13:51, Zeus Odin wrote: > I would like to create a site that does nothing but forward requests to a > destination site, say mydest.com. This is for nothing illicit, I am simply > trying to circumvent a firewall's list of banned sites. > > :-) > > For instance, if I were

Re: xml parsing

2004-10-29 Thread Philipp Traeder
On Thursday 28 October 2004 10:56, E.Horn wrote: Good morning, > this gives me a DTD as output. DTD? As in the kind of document that describes XML files? If yes, an XML Parser might be the wrong tool for parsing this kind of file. Could you give us an example? > My problem is I want to parse th

Re: parse xml

2004-10-28 Thread Philipp Traeder
Hi Franklin, please bottom post (write your answer below the quoted text) - it's much easier to follow a thread this way. On Thursday 28 October 2004 02:11, Franklin wrote: > >> > print $ref->{'ResultItem'}->[0]{'MenuName'}; > I tried this one , but it seems not working:( > Not an ARRAY referen

Re: parse xml

2004-10-25 Thread Philipp Traeder
On Monday 25 October 2004 16:49, Jenda Krynicky wrote: > From: "Traeder, Philipp" <[EMAIL PROTECTED]> > > > print $ref->{'ResultItem'}->[0]{'MenuName'}; > > I think it's better to either skip all the -> between subscriptions > or include them all: > > print $ref->{'ResultItem'}[0]{'MenuName'}

Re: counting gaps in sequence data

2004-10-14 Thread Philipp Traeder
On Thursday 14 October 2004 21:44, Michael Robeson wrote: > Here is as far as I can get with some real code and pseudo code. This > is just to show you that I am actually trying. :-) Hi Michael, this looks quite promising - I'll try to sketch a solution without giving everything away ;-) > > Ps

Re: Regular expression generator/creator

2004-08-30 Thread Philipp Traeder
On Sunday 29 August 2004 HH:58:18, Jenda Krynicky wrote: > From: Philipp Traeder <[EMAIL PROTECTED]> > > > You're right - the problem I'm trying to solve is quite restricted - > > and I'm very thankful for this ;-) Basically, I'm trying to write a

Re: Regular expression generator/creator

2004-08-28 Thread Philipp Traeder
On Saturday 28 August 2004 HH:27:20, Chris Devers wrote: > On Sat, 28 Aug 2004, Philipp Traeder wrote: > > I'm not sure if I understood the Halting Problem completely, but could > > you give a hint what brings you to the assumption that "automatically > > genera

Re: Regular expression generator/creator

2004-08-28 Thread Philipp Traeder
On Friday 27 August 2004 HH:21:13, Chris Devers wrote: > On Fri, 27 Aug 2004, Mark Maunder wrote: > > I've google'd and CPAN'd and no luck. Is there a tool out there that > > will generate a regular expression based on a series of string inputs > > that are similar but have parts that differ[?] > [

executing code that's inside a variable [Re: Code in Variable ausführen?]

2004-07-23 Thread Philipp Traeder
On Friday 23 July 2004 11:53, Bastian Angerstein wrote: > Hello, Hi Bastian, > > is it possible to execute code that is within a var? > > like: > > $var = 'print "Hallo Welt\n"'; > > I had seen something like that in compination with eval... something like this? my $var = 'print "Hallo Welt\n";

Re: find out who was online at a given time

2004-07-22 Thread Philipp Traeder
On Tuesday 20 July 2004 18:34, [EMAIL PROTECTED] wrote: > Ok, this may or may not be a tricky one I will try and be succinct in my > statement. > > I have a database (mysql 4.0) with radius log entries for each day, we > receive emails about Acceptable Use Abuses and must figure out exactly > who w

Re: Perl and XML::Simple

2004-07-22 Thread Philipp Traeder
On Monday 19 July 2004 HH:04:06, David Arnold wrote: > All Good morning, > > I tried to run this: > [..] > my $resp_xml=XMLin('./Responses.xml',forcearray=>1); > > print Dumper $resp_xml; > > On this file: > > [EMAIL PROTECTED] perlxml]# cat -A Responses.xml > > And I got this error message: >

Re: Serving up a pdf file

2004-07-21 Thread Philipp Traeder
On Wednesday 21 July 2004 HH:44:20, David Arnold wrote: > Phillip, Hi David, please bottom post. > > Thanks, but this is not quite what I was looking for. > > When the user clicks on "Quiz1" a perl script will be called to generate > and compile a tex file using pdflatex. Once that is complete, I

Re: Serving up a pdf file

2004-07-21 Thread Philipp Traeder
On Wednesday 21 July 2004 HH:53:19, David Arnold wrote: > All, Hi David, > > I have a page with a link "Quiz1". > > When the user clicks on the the link, a perl script will be summoned that > will populate forms of a pdf document. > > Now, I could create a new page at this point with a link to the

Re: delete vs undef

2004-07-09 Thread Philipp Traeder
On Friday 09 July 2004 19:25, Gunnar Hjalmarsson wrote: > Philipp Traeder wrote: > > I don't know what an expert would say, > > Neither do I. :) I think this is a good base for talking about hashes. ;-) > > but for testing if a hash contains an element, I normally

Re: delete vs undef

2004-07-09 Thread Philipp Traeder
On Friday 09 July 2004 17:14, Christopher J. Bottaro wrote: > i want to remove items from a hash then later see if they exist using [..] > which should i use? delete() or undef()? obviously i could write a small > script to test this (which i'm going to know), but i'd also like to hear > from an

[Solved] Could anyone please answer a simple PERL question.

2004-07-08 Thread Philipp Traeder
On Thursday 08 July 2004 HH:31:20, [EMAIL PROTECTED] wrote: > A sure kill is to search for "perl*" and take note of the path. Then you > can do one of the following: > Just to let you know: The "path" variable has been the problem (as Marco wrote me off-list). Another happy customer ;-) -- To

Re: Could anyone please answer a simple PERL question.

2004-07-08 Thread Philipp Traeder
On Thursday 08 July 2004 HH:18:19, JupiterHost.Net wrote: > Marco wrote: Hi Marco, > > and on DOS prompt when I say, perl simple.pl > > it says: > > 'perl' is not recognized as an internal or external > > command, > > > > what am I missing? an execution path or something? > > Not sure, you may ne

Re: Running Perl CGI MS XP System

2004-07-07 Thread Philipp Traeder
On Wednesday 07 July 2004 12:15, Jerry Preston wrote: > I am looking for a way to run Active Perl CGI on my PC that is setup on > Windows XP. I have installed Apache and I am trying to figure out how > to > set it up the Virtual Host mode to run Perl script with CGI like I do on > my > work SUN st

Re: Timeout problem

2004-07-06 Thread Philipp Traeder
On Tuesday 06 July 2004 10:58, Werner Otto wrote: > Hi All, > > I have the following script: Hi Otto, IIRC, you've posted nearly exactly the same question last thursday... > > #!/usr/bin/perl > use IO::Socket; > > my $host=shift @ARGV or die 'need hostname'; > my $port=shift @ARGV or die 'need p

Re: Fill a string with zeros.

2004-07-02 Thread Philipp Traeder
On Friday 02 July 2004 15:55, Rod Za wrote: > Hi all, > > Someone knows an way to do this more easy? > > _BEGIN_ > #!/usr/bin/perl > use warnings; > use strict; > my $job = 15; > my $job_name = 'd0'; > print "JOBNAME $job_name LENGTH: ".length($job_name)."\n"; > print "JOB...: $job LENGTH:

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 19:26, Wiggins d Anconia wrote: > > On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > > > That's what i've tried (may be it is not the best approch); > > > > If you ask me, the general approach is quite ok... > > Good suggestions, if we are going to stick with the loop

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 18:44, mohammed chafik wrote: > That's what i've tried (may be it is not the best approch); If you ask me, the general approach is quite ok... > Any way, My script doesn't work, it returns an error message (Use of > uninitialized value at formater.pl line 22, chunk 4.) >

Re: Extracting fields from a data file

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 17:04, mohammed chafik wrote: > header, 06-12-2004, path, > /usr/bin/sh,attribute,100555,tom,other,315,56,11,54,77,10,88, > subject,bscs,sgrp,9936,6785,0 0,return,success,0 (line3) > --- > > I need to genera

Re: Assigning a variable to hash keys and values

2004-06-29 Thread Philipp Traeder
On Tuesday 29 June 2004 08:49, Daniel Falkenberg wrote: > Hello All, Hi Dan, > I currently have a hash of a hash... > > > %HoH = ( > > Key1=> { > > Apple => "Green", > > Banna => "Yellow", > > }, > > Key2=> { > >

Re: Sending email via SMTP

2004-06-25 Thread Philipp Traeder
On Thursday 24 June 2004 22:43, Mike Blezien wrote: > Hello, > > I'm looking at using the Net::SMTP module to send email as opposed to the > standard method of "sendmail". > > Been reading through the docs on the module, but not real clear on how to > setup the "To:", "From:", "Reply-to:", "Subject

Re: different versions of same Perl module in different Apache vhosts

2004-06-05 Thread Philipp Traeder
On Saturday 05 June 2004 HH:18:16, Andrew Gaffney wrote: > I didn't really know where to post this since it isn't specifically Apache > or Perl, so I'm posting herejust because :) > > I run 2 vhosts under Apache 1.3.29 (needed for mod_perl-1.x which is needed > by HTML::Mason) on my Gentoo serv

Re: NET::FTP

2004-06-05 Thread Philipp Traeder
On Saturday 05 June 2004 HH:58:11, Edward Ludlow wrote: > philipp traeder wrote: > > "perldoc Net::FTP" is your friend - there you'll find documentation for > > the put() method, which should be what you want. > > Basically, you just need to extend your scrip

Re: NET::FTP

2004-06-05 Thread philipp traeder
On Saturday 05 June 2004 HH:28:05, Edward Ludlow wrote: > I'm a newbie to Perl - I'm having to dip in and try and do some coding > as I need a script that will move a file from one server to another. I > believe this can be done with the Net::FTP object. > I've played around whit this a fair bi

Re: combining data from more than one file...

2004-05-21 Thread philipp traeder
On Wednesday 19 May 2004 05:25 pm, Michael Robeson wrote: > Sorry, I meant to upload this script (see below). However, I have one > last question. Why can't I use > > s/\n//g;# instead of > > tr/A-Za-z-//cd; > > > > in the script below? I thought it would be simpler to remove the > newline char

Re: tracking mail logs

2004-04-08 Thread Philipp Traeder
On Wed, 2004-04-07 at 20:26, WC -Sx- Jones wrote: > Traeder, Philipp wrote: > >>-Original Message- > > Should we take this back to the perl list? After all we > are talking about writing Perl. Yes, of course. If it's getting too module-specific, we can still switch to private mails. >

Re: SQL annoyance

2004-01-04 Thread Philipp Traeder
Hi Dan, On Sun, 2004-01-04 at 03:34, dan wrote: > I have an SQL statement as follows, > SELECT * FROM memodata WHERE to=1 AND readdate=sent ORDER BY id ASC > which fails giving an error on the to=1 part. > I've tried doing that statement without the 'to=1 AND' part, and it works > fine returning a

Re: Recommendations?

2003-12-09 Thread Philipp Traeder
Hi Derek, On Tue, 2003-12-09 at 21:01, Derek Brinson wrote: > Where might I find reference (conceptual) stuff about how to launch a > JAVA app via CGI (or vice versa)? Could you specify what kind of Java application you're talking about? The Java *applications* (as opposed to servlets, EJBs etc.

Re: Replacing text

2003-12-05 Thread Philipp Traeder
e ($fh); Search for "perlre" in perl-doc for more information. HTH, Philipp Traeder On Sat, 2003-12-06 at 00:10, Dan Anderson wrote: > I have a script that reads text from a file and inserts text > into different places depending on what it needs to do. But I use

Re: command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
> Not related to your question but, have you thought of using a dispatch > table instead? > > sub help { > # process help > } > > sub long_action { > # process long_action > } > > my %process = ( > help=> \&help, > long_action => \&long_action, > simple_cmd =

Re: command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
On Thu, 2003-11-27 at 21:37, drieux wrote: > > On Thursday, Nov 27, 2003, at 09:58 US/Pacific, Douglas Lentz wrote: > > > Re: (A) What's the best way for the child to inform the parent that > > it's done?. > > > Given that his question (A) is about 'informing' > the parent that it is finished, h

command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
inner while loop, and if I call ReadKey(0), it looks like all keys are fetched first, and afterwards the "print" statements are executed. I hope you see my problem, though I find it hard to describe. Can anybody give me a clue in which direction I could go with that? Thank you very