Re: assign operator as variable

2004-10-25 Thread Gabor Urban
On Mon, 2004-10-25 at 11:39, Khairul Azmi wrote: > I am not sure what category should this question fall under but this > is what I plan to do. > > $cond1 = 1; > $cont2 = 0; > $oper1="&&"; # for AND > $oper2="||"; # for OR > > if ($cond1 $oper1 $cond2) { > print "one \n"; > } else { > print

Re: Need help to calculate average value in hash

2004-10-20 Thread Gabor Urban
On Wed, 2004-10-20 at 01:57, Pete Tong wrote: > Hi All, > > > > I have file: > > Hi, show us some code fragments that seem not to work. Post well defined question. Gabaux -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: .txt To Mysql.......roy

2004-10-19 Thread Gabor Urban
On Tue, 2004-10-19 at 12:12, Roime bin Puniran wrote: > Hi.. > I have 30 text file that contains of sort of data about wheather...Each text file > contains the information about weather in one day. So, i have 30 text file, which > contains all the info about weather in 30 days(1 month). All the a

Re: Perl Documentor

2004-10-08 Thread Gabor Urban
On Fri, 2004-10-08 at 07:09, Chris Puccio wrote: > Greetings, > > Im looking for something opensource that can read in directories of perl > source files, and build a nice web based output on the lines of what's used > at: [snippp] You need something like Doxygen in C++? Try to use POD

Re: Can you help me design a perl class/classes ?

2004-10-05 Thread Gabor Urban
On Mon, 2004-10-04 at 21:00, Graeme McLaren wrote: > Hey all .. I'm thinkin about writing a web application using perl > and object oriented techniques. > Nice try, a good point learning OOP in any language. Design issues are not so easy to counsel. > I want to start off small ... le

Re: Becoming Disenheartened - Everyone talks about Python and says Perl is old news.

2004-10-01 Thread Gabor Urban
Hi guys, this thread seems to expand into something unworthy of this mailing list. You can not compare a cup of tea with a horse, these are two totally different things. Both Perl and Python have it's place under the sun, both have very good features, and some very difficult aspects, too. Both ca

RE: printing block of text

2004-09-30 Thread Gabor Urban
On Thu, 2004-09-30 at 15:39, Murphy, Ged (Bolton) wrote: > >> I'm trying to print a block of code using 'print < >> getting an error stating perl can't find the termination label. > >> Test code and error as follows: > >> > >> #!/usr/bin/perl > >> > >> print < >> this is my tester text > >> TEST

Re: Becoming Disenheartened - Everyone talks about Python and says Perl is old news.

2004-09-28 Thread Gabor Urban
On Tue, 2004-09-28 at 13:20, Gavin Henry wrote: > I really like Perl, but lately everywhere I seem to go and talk to say I > shouldn't be learning Perl as it's old and Python is better. THese days Python is gaining support in the field. But I do think it is mainly hype. I do think it is not

Re: Perl editor you preffer

2004-09-28 Thread Gabor Urban
On Mon, 2004-09-27 at 07:45, Nicolay A. Vasiliev wrote: > Which perl editor do you use? Maybe it will match for me too? > > Thanks in advance and sorry my poor English. Hi, If I am forced to use WinDoz I prefer gvim or Xemacs. Both are very powerfull editors. > -- > Best regards, > Nicolay Va

Re: awk like question

2004-08-13 Thread Gabor Urban
On Wed, 2004-08-11 at 16:08, [EMAIL PROTECTED] wrote: You can do it in awk and translet it to perl with a2p > All, > > wasn't sure if this was received b/c I got a reurne to sender error. > > > How can I print certain fields delimited by ' '? > In awk I would write awk '{print $1, $6}' filenam

Re: How to call a perl script....

2004-06-25 Thread Gabor Urban
On Fri, 2004-06-25 at 08:32, Charlene Gentle wrote: I think you should ty the do 'filename' command. Look it up in the perlfunc manual on CPAN. Gabaux > Hi > > How do you call 'n perl script from within a perl script and return to > the scripts again. > > > > Thanx -- To unsubscribe, e-ma

Line number variable....

2004-05-07 Thread Gabor Urban
Hi, I was going through the manuals some times, but could not find it. Is there a variable containing the actual source-line number during execution? Gabaux Linux is like a wigwam: no gates, no windows, and an apache inside! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

OT question about Texinfo

2004-05-04 Thread Gabor Urban
Hi, I know that my question is offtopic here, but can anybody inform me, if there is a tool to convert Texinfo documentation to HTML? Gabaux Linux is like a wigwam: no gates, no windows, and an apache inside! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: OOPS!!

2004-04-26 Thread Gabor Urban
Hi, Perl object are a bit different. My idea would be to write a small object on your ouwn, and expereince with it. There is no other 'royal' road.. Gabaux Linux is like a wigwam: no gates, no windows, and an apache inside! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: book suggestion for atypical beginner

2004-04-07 Thread Gabor Urban
From: Ananda Stevens <[EMAIL PROTECTED]> Subject: book suggestion for atypical beginner Date: Tue, 06 Apr 2004 16:21:16 -0500 > I'm hoping someone has a suggestion for a book that would suit me. I > find books that assume no programming knowledge to be slow-moving and > often boring. But the nex

Re: Exit

2004-03-04 Thread Gabor Urban
We'll miss you, shure Gabaux Linux is like a wigwam: no gates, no windows, and an apache inside! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Date manipulation

2004-02-10 Thread Gabor Urban
From: "Roger Grosswiler" <[EMAIL PROTECTED]> Subject: Date manipulation Date: Tue, 10 Feb 2004 11:21:15 +0100 (CET) > hi list, > > i'd like to try a first perl-script that should: > > -define todays date > -define todays date minus one week > -find in a special directory files, that contain ddmm

Re: my in the perl syntax

2004-02-06 Thread Gabor Urban
From: Robert <[EMAIL PROTECTED]> Subject: Re: my in the perl syntax Date: Fri, 06 Feb 2004 07:57:39 -0500 Hi the best to understand is like in the next code snippet: sub SubA { my $var1 ; } In this function the var $var will be local and so can not be accessed from outside. (Or if you h

Re: Why isn't perl used more in business and industry

2004-01-19 Thread Gabor Urban
Hi, I might know something for an answer. Though Perl is really good and fantastic, flexibole, etc. it has the bad reputation being hard to read. An average manager wants his or her stuff to be clean and neat. Seeing a tricky Perl code with regexp stuff is rather alarming. On the other hand Pytho

Question about subroutines....

2004-01-13 Thread Gabor Urban
Hi, Is it possible to write a subroutine in Perl which accepts an open file handle as parameter? At the moment it seems hopeless, but is it? Regards Gabaux Linux is like a wigwam: no gates, no windows, and an apache inside! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Education level

2003-12-08 Thread Gabor Urban
I have MSc degree (according to American levels) in math and physics, and IT or CompSci is not my trained profession. It does not prevent me from earning my money as a software developer (software engineer) in the last 5 years. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: lowercase

2003-10-20 Thread Gabor Urban
From: "Andre Chaves Mascarenhas" <[EMAIL PROTECTED]> Subject: lowercase Date: Mon, 20 Oct 2003 07:48:15 -0200 > Hi if i have an string lets say > $stri="Joana Prado"; > How do i transformm it into > "joana prado" > (all lowercase) > Thanks Hi, I would try the s operator with a regex. You could c

Re: document creation.

2003-09-02 Thread Gabor Urban
Hi, thogh might seem to be a bit outmoded at the time I suggest to use TeX. It is a highly portable and rather easy-to-use system, and can beat Docbook/XML in many cases. Desing your invoice or whatever macro file, and generate the TeX input file via perl. IMHO the old technologies may give you

Re: Learning Perl vs. c ++

2003-08-01 Thread Gabor Urban
From: "GregorioGonzalez" <[EMAIL PROTECTED]> Subject: Learning Perl vs. c ++ Date: Thu, 31 Jul 2003 14:10:28 -0400 > Hello: > > I have heard that PERL is more valuable than learning C++ in terms of > IT, etc. > > What is your view of the matter. > > Regards, > > GREGORIO GONZALEZ: Internet B

Short silly question

2003-07-18 Thread Gabor Urban
Hi, could someone give me a quick info whar __END__ and __DATA__ lines are good for? Gabaux -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Simple process controll question

2003-07-17 Thread Gabor Urban
Hi, I think the question at hand may be quite simple, though I could not figure the asnwer out :-)) MyScript.pl runs an other script (foo.pl) with the system call: system foo.pl arg1 arg2 ; I would like to have a status report (error flag) from foo.pl, which does some exit's and die's at error

Slightly offtopic question...

2003-07-03 Thread Gabor Urban
Hi guys, I know, this problem is slightly offtopic on this list. I am submitting multiple HTTP POST requests to Apache. The first request gets handled properly, but from the second one Apache logs incorrect header. The funny point is, that I am submitting the very same request more than once. I

Socket question

2003-06-27 Thread Gabor Urban
Hi, I am still working on a socket problem at low level, and there is something I wander. Are Perl socket bidirectional? I am currently work to test an Apache module, that processes HTTP POST requests. I thought at the beginning, that a Perl script would do perfect for me. Code fragment: sen

Re: it seems impossible to me...

2003-06-27 Thread Gabor Urban
If you use Unix type of system, there a full shell solution: - print your array to a text file - sort the file with the unix command 'sort' - remove the multiple lines with the unix command 'uniq' You may find the details in the man Gabaux Linux is like a wigwam: no gates, no windows, and an

Re: OFF TOPIC: Emacs MMM mode

2003-06-25 Thread Gabor Urban
HI, I do not remember the link correctly, but u could look emacs mailing list. start at www.gnu.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl - Web Development

2003-06-05 Thread Gabor Urban
From: "Paul Kraus" <[EMAIL PROTECTED]> Subject: Perl - Web Development Date: Wed, 4 Jun 2003 09:49:10 -0400 > This may be asking for biased opinions but here goes anyways... > > Is perl still a good choice for the web. For instance I need to setup a > couple sites that are going to be running on