Re: Help needed with here documents (security?)

2013-10-24 Thread Octavian Rasnita
From: "Ronald F. Guilmette" > > In message <7E7181F2497441C88988DD1F16E4A743@octavianf303f0>, you wrote: > >>From: "Janek Schleicher" >> >>> Am 24.10.2013 15:07, schrieb Shawn H Corey: > my $email = Email::Simple->create( > header => [ > From => $sender_addr

Re: Help needed with here documents (security?)

2013-10-24 Thread Ronald F. Guilmette
In message <20131024183255.3c233104@sage>, you wrote: >On Thu, 24 Oct 2013 14:55:51 -0700 >"John W. Krahn" wrote: > >> stdin (and stdout) are part of a stream protocol and as such are not >> about files and do not signal End-Of-File which is part of why emails >> use the single period to signa

Re: Help needed with here documents (security?)

2013-10-24 Thread Ronald F. Guilmette
In message <52699767.2050...@shaw.ca>, you wrote: >Ronald F. Guilmette wrote: >> In message<5268663c.4040...@stemsystems.com>, >> Uri Guttmanwrote: >> >>> i think a blank line with . will end input to smtp servers. try that too >>> in the line after the from field. >> >> DING DING DING!!! >> >> G

Re: Help needed with here documents (security?)

2013-10-24 Thread Shawn H Corey
On Thu, 24 Oct 2013 14:55:51 -0700 "John W. Krahn" wrote: > stdin (and stdout) are part of a stream protocol and as such are not > about files and do not signal End-Of-File which is part of why emails > use the single period to signal the end of the message. I thought that was from the old mai

Re: Help needed with here documents (security?)

2013-10-24 Thread John W. Krahn
Ronald F. Guilmette wrote: In message<5268663c.4040...@stemsystems.com>, Uri Guttmanwrote: i think a blank line with . will end input to smtp servers. try that too in the line after the from field. DING DING DING!!! Give that man a cupie doll, because he's the winner of today's perplexing pu

Re: Help needed with here documents (security?)

2013-10-24 Thread Jim Gibson
On Oct 24, 2013, at 11:59 AM, Ronald F. Guilmette wrote: > But, getting back to my original 2 questions... > > I want to stress that I did not ask how to formulate and/or send a > properly formatted e-mail message. I can handle that part, even if > perhaps only in my own clumsey way. > > What

Re: Help needed with here documents (security?)

2013-10-24 Thread Ronald F. Guilmette
In message <7E7181F2497441C88988DD1F16E4A743@octavianf303f0>, you wrote: >From: "Janek Schleicher" > >> Am 24.10.2013 15:07, schrieb Shawn H Corey: my $email = Email::Simple->create( header => [ From => $sender_addr, To => 'ad...@

Re: Help needed with here documents (security?)

2013-10-24 Thread Octavian Rasnita
From: "Janek Schleicher" Am 24.10.2013 15:07, schrieb Shawn H Corey: my $email = Email::Simple->create( header => [ From => $sender_addr, To => 'ad...@tristatelogic.com', X-Server-Protocol => $server_protocol, X-Http-User-Agent => $ht

Re: Help needed with here documents (security?)

2013-10-24 Thread Janek Schleicher
Am 24.10.2013 15:07, schrieb Shawn H Corey: my $email = Email::Simple->create( header => [ From => $sender_addr, To => 'ad...@tristatelogic.com', X-Server-Protocol => $server_protocol, X-Http-User-Agent => $http_user_agent, X-Http-

Re: Help needed with here documents (security?)

2013-10-24 Thread Shawn H Corey
On Thu, 24 Oct 2013 06:30:58 -0700 Jim Gibson wrote: > > On Oct 24, 2013, at 6:07 AM, Shawn H Corey wrote: > > > On Thu, 24 Oct 2013 13:52:51 +0200 > > Janek Schleicher wrote: > > > >> use Email::Simple; > >> > >> my $email = Email::Simple->create( > >> header => [ > >> From

Re: Help needed with here documents (security?)

2013-10-24 Thread Jim Gibson
On Oct 24, 2013, at 6:07 AM, Shawn H Corey wrote: > On Thu, 24 Oct 2013 13:52:51 +0200 > Janek Schleicher wrote: > >> use Email::Simple; >> >> my $email = Email::Simple->create( >> header => [ >> From => $sender_addr, >> To => 'ad...@tristatelogic.com',

Re: Help needed with here documents (security?)

2013-10-24 Thread Shawn H Corey
On Thu, 24 Oct 2013 13:52:51 +0200 Janek Schleicher wrote: > use Email::Simple; > > my $email = Email::Simple->create( >header => [ > From => $sender_addr, > To => 'ad...@tristatelogic.com', > X-Server-Protocol => $server_protocol, > X-Http-

Re: Help needed with here documents (security?)

2013-10-24 Thread Janek Schleicher
Another way of handling is to use one of the availabe Email::* modules on CPAN. This would have the advantages of (beside you don't have to worry about details of string quoting): - better code, as you write down what you intend to do instead of how you do it - better security, as those module

Re: Help needed with here documents (security?)

2013-10-23 Thread Ronald F. Guilmette
In message <40504.1382576...@server1.tristatelogic.com>, I wrote: >>> Well, I added to the script some rudimentary filtering/validation of >>> the input strings in question also. >> >>you need more than rudimentary filtering. make sure the from field is >>one string, no newlines or anything but

Re: Help needed with here documents (security?)

2013-10-23 Thread Ronald F. Guilmette
In message <5268663c.4040...@stemsystems.com>, Uri Guttman wrote: >i think a blank line with . will end input to smtp servers. try that too >in the line after the from field. DING DING DING!!! Give that man a cupie doll, because he's the winner of today's perplexing puzzle test! In short, ye

Re: Help needed with here documents (security?)

2013-10-23 Thread Ronald F. Guilmette
In message <20131023193228.38cf83e2@sage>, you wrote: >On Wed, 23 Oct 2013 16:12:12 -0700 >"Ronald F. Guilmette" wrote: > >> I believe that you may be on to something here, but it is more than >> just Postfix seeing a \n\n and believeing that it had encountered the >> end of the headers. It is

Re: Help needed with here documents (security?)

2013-10-23 Thread Uri Guttman
On 10/23/2013 07:12 PM, Ronald F. Guilmette wrote: In message <52684f18.2000...@stemsystems.com>, you wrote: I _do_ know more than a little about mail servers, and while you are basically correct, i.e. that Postfix would certainly view anything past the first \n\n encountered as being *messag

Re: Help needed with here documents (security?)

2013-10-23 Thread Dr.Ruud
On 2013-10-24 01:12, Ronald F. Guilmette wrote: In message <52684f18.2000...@stemsystems.com>, you wrote: On 10/23/2013 06:18 PM, Ronald F. Guilmette wrote: ... print SM < From: "$sender_name" <$sender_addr> Subject: Your message to Tristatelogic.Com X-Server-Protocol: $server_protocol X-Http

Re: Help needed with here documents (security?)

2013-10-23 Thread Shawn H Corey
On Wed, 23 Oct 2013 16:12:12 -0700 "Ronald F. Guilmette" wrote: > I believe that you may be on to something here, but it is more than > just Postfix seeing a \n\n and believeing that it had encountered the > end of the headers. It is possible that something in the input > stream I gave it signal

Re: Help needed with here documents (security?)

2013-10-23 Thread Ronald F. Guilmette
In message <52684f18.2000...@stemsystems.com>, you wrote: >On 10/23/2013 06:18 PM, Ronald F. Guilmette wrote: > >> ... >> print SM <> To: "Tristatelogic.Com Administrator" >> From: "$sender_name" <$sender_addr> >> Subject: Your message to Tristatelogic.Com >> X-Server-Protocol: $server_protocol

Re: Help needed with here documents (security?)

2013-10-23 Thread Uri Guttman
On 10/23/2013 06:18 PM, Ronald F. Guilmette wrote: ... print SM < From: "$sender_name" <$sender_addr> Subject: Your message to Tristatelogic.Com X-Server-Protocol: $server_protocol X-Http-User-Agent: $http_user_agent X-Http-Referer: $http_referer X-Remote-Addr: $remote_addr X-Remote-Host: $remot

Re: Help needed with here documents (security?)

2013-10-23 Thread Ronald F. Guilmette
In message <39517.1382566...@server1.tristatelogic.com>, I wrote: >About a day ago, some schmuck set about to try, hard, to exploit the >personally written Perl code I have in place and that processes the >input for the contact form on my web site... I neglected to mention that this was obviousl

Help needed with here documents (security?)

2013-10-23 Thread Ronald F. Guilmette
I'm not actually/formally a Perl "beginner", but this problem is making me feel like one. About a day ago, some schmuck set about to try, hard, to exploit the personally written Perl code I have in place and that processes the input for the contact form on my web site (www.tristatelogic.com). Fo

Re: Programming Help Needed

2013-10-04 Thread Angela Barone
I just wanted to give a big "Thank you" to all who responded to my inquiry! This will help a lot in my search. Thanks again, Angela -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Programming Help Needed

2013-10-02 Thread Ian
Angela, ActiveState offer professional service: http://www.activestate.com/support/open-source-consulting and Cambria.com. I cannot vouch for either but I looked at them awhile ago. Ian On Tue, Oct 1, 2013 at 4:37 PM, Angela Barone wrote: > Hello, > > I don't know if this type of sub

Re: Programming Help Needed

2013-10-02 Thread Dermot
Your post to jobs.perl.org will likely result in some solicitations from recruiters. You also likely to get a some queries about tele-working. At least that has been our experience. I'm not saying that either is good or bad but it's worth making it clear in the description what your after. You may

Re: Programming Help Needed

2013-10-01 Thread Angela Barone
On Oct 1, 2013, at 2:45 PM, John SJ Anderson wrote: > jobs.perl.org is the definitive place to post Perl jobs. > > good luck in your search. Thank you, John! I mentioned this link and was told that the last time we used it, we got a lot of responses from people who really didn't know th

Re: Programming Help Needed

2013-10-01 Thread John SJ Anderson
jobs.perl.org is the definitive place to post Perl jobs. good luck in your search. On Tue, Oct 1, 2013 at 2:37 PM, Angela Barone wrote: > Hello, > > I don't know if this type of subject is off limits here, so if it is, > please let me know where I can post this request. > > My

Programming Help Needed

2013-10-01 Thread Angela Barone
Hello, I don't know if this type of subject is off limits here, so if it is, please let me know where I can post this request. My employer is looking to replace our existing Perl cart with a new, modern version. He has asked me to help in the search for programmers who would b

Re: Regex help needed

2013-01-09 Thread Dr.Ruud
On 2013-01-08 13:28, punit jain wrote: { test = ("test123"); test = ("test123","abc"); test = ("test123","abc","xyz"); } { test1 = ("passfile"); test1 = ("passfile","pasfile1"); test1 = ("passfile","pasfile1","user"); } and so on The requirement is to have the file parsing so that final o

Re: Regex help needed

2013-01-09 Thread *Shaji Kalidasan*
quot;,"jack"); [/output]   best, Shaji --- Your talent is God's gift to you. What you do with it is your gift back to God. --- _

Re: Regex help needed

2013-01-08 Thread timothy adigun
Hi punit jain, Please check my comments below. On Tue, Jan 8, 2013 at 1:28 PM, punit jain wrote: > Hi , > > I have a file as below : - > > { > test = ("test123"); > test = ("test123","abc"); > test = ("test123","abc","xyz"); > } > { > test1 = ("passfile"); > test1 = ("passfile","pasfile1"); > t

Re: Regex help needed

2013-01-08 Thread Jim Gibson
On Jan 8, 2013, at 4:28 AM, punit jain wrote: > Hi , > > I have a file as below : - > > { > test = ("test123"); > test = ("test123","abc"); > test = ("test123","abc","xyz"); > } > { > test1 = ("passfile"); > test1 = ("passfile","pasfile1"); > test1 = ("passfile","pasfile1","user"); > } > > and

Regex help needed

2013-01-08 Thread punit jain
Hi , I have a file as below : - { test = ("test123"); test = ("test123","abc"); test = ("test123","abc","xyz"); } { test1 = ("passfile"); test1 = ("passfile","pasfile1"); test1 = ("passfile","pasfile1","user"); } and so on The requirement is to have the file parsing so that final output is

Re: Help needed in pressing Esc key

2011-05-15 Thread Shlomi Fish
Hi meaculpa, On Friday 13 May 2011 10:44:34 meaculpa wrote: > Hi, > > Can anyone plz help me by telling how to press Esc key using perl > script. > > In my script, i came across a scenario to press the Esc key.. Plz help > me.. I am not able to move forward due to this problem. Do you want to p

Help needed in pressing Esc key

2011-05-15 Thread meaculpa
Hi, Can anyone plz help me by telling how to press Esc key using perl script. In my script, i came across a scenario to press the Esc key.. Plz help me.. I am not able to move forward due to this problem. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: MQSeries ... help needed

2010-12-07 Thread Brian Fraser
> > MQSeries-1.31/MQClient/ > *Makefile.PL: No such directory '/usr/lpp/mqm'* > I don't know what the MQSeries is, but that message makes me suspect.. Have you actually installed that, prior to attempting to install the module? If you have, try looking where it's installed, and symlink it to the f

MQSeries ... help needed

2010-12-07 Thread ashwin ts
hello , My name is ashwin and i am new to perl. I have a requirement where in i need to send messages to MQSeries.. I assume that for the same .. i need to install the MQSeries package in my existing perl.i use a unix environment.The version of perl that i am using is v5.8.2, can you please guide

Re: [PBML] Help needed in recursion with objects in perl !

2010-08-07 Thread Chas. Owens
On Sat, Aug 7, 2010 at 09:36, Amit Saxena wrote: snip > The purpose of this activity is to model a hierarchical representation of > dependent components, each of one will be represented as a service. > > I had a look at the Graph module ( > http://search.cpan.org/~jhi/Graph-0.94/lib/Graph.pod) but

Re: [PBML] Help needed in recursion with objects in perl !

2010-08-07 Thread Amit Saxena
On Fri, Aug 6, 2010 at 8:09 PM, Randal L. Schwartz wrote: > > "Amit" == Amit Saxena writes: > > Amit> I am working on a tree implementation (with any number of parent > Amit> and child nodes) in perl. Every node is defined as a object of a > Amit> "Node" class which I have created as a ".pm"

Re: [PBML] Help needed in recursion with objects in perl !

2010-08-06 Thread Randal L. Schwartz
> "Amit" == Amit Saxena writes: Amit> I am working on a tree implementation (with any number of parent Amit> and child nodes) in perl. Every node is defined as a object of a Amit> "Node" class which I have created as a ".pm" module. Unless this is for a student exercise, you probably just wa

Help needed in recursion with objects in perl !

2010-08-06 Thread Amit Saxena
Hi all, I am working on a tree implementation (with any number of parent and child nodes) in perl. Every node is defined as a object of a "Node" class which I have created as a ".pm" module. I have defined a method "getParentNodes" which returns reference to an array having all the (immediate) pa

Re: Help needed with '-e' operator

2009-07-09 Thread Anu P
9, 2009 7:40:00 AM Subject: Re: Help needed with '-e' operator On Wed, Jul 8, 2009 at 6:57 PM, John Refior wrote: > On Wed, Jul 8, 2009 at 7:34 AM, Anu P wrote: > >> I am trying to use the '-e' filetest operator and encountered some wired >> behavior. >>

Re: Help needed with '-e' operator

2009-07-09 Thread Robert Citek
On Wed, Jul 8, 2009 at 6:57 PM, John Refior wrote: > On Wed, Jul 8, 2009 at 7:34 AM, Anu P wrote: > >> I am trying to use the '-e' filetest operator and encountered some wired >> behavior. >> I have a tar.gz file which is around 2.6 G and this is the code...Tar.gz >> file is in the same directory

Re: Help needed with '-e' operator

2009-07-08 Thread John Refior
On Wed, Jul 8, 2009 at 7:34 AM, Anu P wrote: > I am trying to use the '-e' filetest operator and encountered some wired > behavior. > I have a tar.gz file which is around 2.6 G and this is the code...Tar.gz > file is in the same directory where script is executed. > > unless (-e $file) { > print

Re: Help needed with '-e' operator

2009-07-08 Thread Robert Citek
The code you wrote should work as it worked for me when I tested it on a 3 GB sized file: $ ls -sh 3gb-file 3.0G 3gb-file $ perl -le '$file="3gb-file" ; unless (-e $file) { print ("nope") ; } else { print ("yup") ; } ' yup I tested it with files as large as 10 GB and it worked. Could it be that

Help needed with '-e' operator

2009-07-08 Thread Anu P
Hi, I am trying to use the '-e' filetest operator and encountered some wired behavior. I have a tar.gz file which is around 2.6 G and this is the code...Tar.gz file is in the same directory where script is executed. unless (-e $file) { print ("ERROR: $file does not exist\n"); exit(1); } This d

Re: help needed to get over endless loop

2009-04-20 Thread Brian
Thank you all for your much needed help. The penny has managed to drop. regards Brian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: help needed to get over endless loop

2009-04-17 Thread Chas. Owens
On Fri, Apr 17, 2009 at 21:35, Brian wrote: snip > LOL, I didn't understand any of that. :-) > Apart from the last sentence ;-) snip Think of a clock, they hands can go around as many times as you like but they can never point to anything higher than 12. Modulus works the same way, the second va

Re: help needed to get over endless loop

2009-04-17 Thread Brian
John W. Krahn wrote: Brian wrote: John W. Krahn wrote: Brian wrote: This is what I'm using upto the code that is giving me a headache. I know it's messy, but I have no training in PERL, I am trying to forward-engineer this cgi by back-engineering from html templates I created and which were

Re: help needed to get over endless loop

2009-04-17 Thread John W. Krahn
Brian wrote: John W. Krahn wrote: Brian wrote: This is what I'm using upto the code that is giving me a headache. I know it's messy, but I have no training in PERL, I am trying to forward-engineer this cgi by back-engineering from html templates I created and which were chosen using $t->src

Re: help needed to get over endless loop

2009-04-17 Thread Brian
John W. Krahn wrote: Brian wrote: This is what I'm using upto the code that is giving me a headache. I know it's messy, but I have no training in PERL, I am trying to forward-engineer this cgi by back-engineering from html templates I created and which were chosen using $t->src [ *SNIP* ]

Re: help needed to get over endless loop

2009-04-17 Thread Brian
Brian wrote: John W. Krahn wrote: Brian wrote: chomp($Lang = $val1); chomp($Year_in = $val2); chomp() removes the contents of the $/ variable from the end of the string. What makes you think that $val1 and $val2 need to be chomp()ed? Oops, they are leftovers from when I was using STDIN

Re: help needed to get over endless loop

2009-04-17 Thread Brian
John W. Krahn wrote: Brian wrote: This is what I'm using upto the code that is giving me a headache. I know it's messy, but I have no training in PERL, I am trying to forward-engineer this cgi by back-engineering from html templates I created and which were chosen using $t->src #! c:\perl\b

Re: help needed to get over endless loop

2009-04-17 Thread John W. Krahn
Brian wrote: This is what I'm using upto the code that is giving me a headache. I know it's messy, but I have no training in PERL, I am trying to forward-engineer this cgi by back-engineering from html templates I created and which were chosen using $t->src [ *SNIP* ] whe

Re: help needed to get over endless loop

2009-04-17 Thread John W. Krahn
Brian wrote: This is what I'm using upto the code that is giving me a headache. I know it's messy, but I have no training in PERL, I am trying to forward-engineer this cgi by back-engineering from html templates I created and which were chosen using $t->src thanks for any help Brian #! c:

Re: help needed to get over endless loop

2009-04-17 Thread Brian
Jim Gibson wrote: On 4/17/09 Fri Apr 17, 2009 1:50 PM, "Brian" scribbled: Brian wrote: oops, should read.. $Year_out = $Year_in; while ($Year_out > 100) {$Year_out -= 100;} if (($Year_out > 00) && ($Year_out <= 25)) {$string = $string1;} if (($Year_out > 25

Re: help needed to get over endless loop

2009-04-17 Thread Jim Gibson
On 4/17/09 Fri Apr 17, 2009 1:50 PM, "Brian" scribbled: > Brian wrote: > > oops, should read.. > > $Year_out = $Year_in; > > while ($Year_out > 100) {$Year_out -= 100;} > if (($Year_out > 00) && ($Year_out <= 25)) {$string = $string1;} > if (($Year_out > 25) &

Re: help needed to get over endless loop

2009-04-17 Thread Brian
Kevin Ponds wrote: Brian, Your while loops aren't actually performing any operation on the variable I did actually state that the loops wouldn't work. I adjusted them to better show what I want to achieve, not to show how I am trying to achieve it. that is being tested as part of their co

Re: help needed to get over endless loop

2009-04-17 Thread Kevin Ponds
Brian, Your while loops aren't actually performing any operation on the variable that is being tested as part of their condition. With while loops, if the condition ($i in this case) is true at the start of the loop, and doesn't change, they will loop forever. They aren't like for loops, where y

Re: help needed to get over endless loop

2009-04-17 Thread Brian
Brian wrote: oops, should read.. $Year_out = $Year_in; while ($Year_out > 100) {$Year_out -= 100;} if (($Year_out > 00) && ($Year_out <= 25)) {$string = $string1;} if (($Year_out > 25) && ($Year_out <= 50)) {$Year_out -= 25;$string = $string2;} if (($Year_o

Re: help needed to get over endless loop

2009-04-17 Thread Brian
This is what I'm using upto the code that is giving me a headache. I know it's messy, but I have no training in PERL, I am trying to forward-engineer this cgi by back-engineering from html templates I created and which were chosen using $t->src thanks for any help Brian #! c:\perl\bin\perl

Re: help needed to get over endless loop

2009-04-17 Thread Brian
Wagner, David --- Senior Programmer Analyst --- CFS wrote: -Original Message- From: Brian [mailto:brian5432...@yahoo.co.uk] Sent: Friday, April 17, 2009 11:03 To: Perl Beginners Subject: help needed to get over endless loop Hi I had this semi-working, changed something and can&#

RE: help needed to get over endless loop

2009-04-17 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: Brian [mailto:brian5432...@yahoo.co.uk] > Sent: Friday, April 17, 2009 11:03 > To: Perl Beginners > Subject: help needed to get over endless loop > > Hi > I had this semi-working, changed something and can't remember wh

Re: help needed to get over endless loop

2009-04-17 Thread Jim Gibson
On 4/17/09 Fri Apr 17, 2009 10:02 AM, "Brian" scribbled: > Hi > I had this semi-working, changed something and can't remember where I > went right, so would appreciate some help getting back on top. > > I know 1..10 and 2..10 probably won't work in the following example, I > have just changed

help needed to get over endless loop

2009-04-17 Thread Brian
Hi I had this semi-working, changed something and can't remember where I went right, so would appreciate some help getting back on top. I know 1..10 and 2..10 probably won't work in the following example, I have just changed lines to show what I am trying to get. $mystart = -2; $i = 1; for

Re: Help needed in understanding some lines of code.

2009-03-19 Thread Telemachus
On Thu Mar 19 2009 @ 10:41, Chas. Owens wrote: > On Thu, Mar 19, 2009 at 06:11, Raheel Hassan wrote: > > Can anybody explains this piece of code, i have difficulties in > > understanding it, You're much nicer than the folks over at Linux Questions. http://tinyurl.com/dhncl4 Then again, he did

Re: Help needed in understanding some lines of code.

2009-03-19 Thread Chas. Owens
On Thu, Mar 19, 2009 at 10:41, Chas. Owens wrote: snip >> &initLanguage($language); > > No idea what this does because there is no context for it. snip >> "x($status_bar_pos-(length($txth->getText("5016"))+7; } snip Whoops, I only worked down the code and didn't reread until after I sent the

Re: Help needed in understanding some lines of code.

2009-03-19 Thread Chas. Owens
On Thu, Mar 19, 2009 at 06:11, Raheel Hassan wrote: > Can anybody explains this piece of code, i have difficulties in > understanding it, > > > my $errorlog = "/var/log/controler.log"; > > &initLanguage($language); No idea what this does because there is no context for it. > &launchCbox(); This

Help needed in understanding some lines of code.

2009-03-19 Thread Raheel Hassan
Can anybody explains this piece of code, i have difficulties in understanding it, my $errorlog = "/var/log/controler.log"; &initLanguage($language); &launchCbox(); sub launchCbox { $scr = Term::ScreenColor->new; $scr->clrscr(); my ($mode) = @_; my $error = 0;

Compare, diff to a file with Perl help needed

2008-10-20 Thread Z W
Hi I have 2 log files, each with a timestamp on the first 2 fields. However, when I do a awk '/ / {print $1,$2}' logs/x.log on a log file, it is complicated by the fact that I also get other non timestamp column, 2008-10-20 15:00:06,113 2008-10-20 15:00:06,113 2008-10-20 14:59:48,828 javax.naming

Help needed for Read XML from Serial Port

2008-09-30 Thread keeeeef
Hi, I'd like some help with the serial port code from my hacked up program below. I have a electricity monitoring device thats hooked up to my pc's serial port. The device outputs XML every six seconds. I want to read some of the values from the XML and put them into a database. The code below doe

Re: perl-support for vim help needed

2008-05-11 Thread Süleyman Gülsüner
don't forget to instal perl-support for vim: http://www.vim.org/scripts/script.php?script_id=556 here is the desc: description - insert various types of comments - insert complete but empty statements (e.g. 'if {} else {}' ) - insert often used code snippets (e.g. declarations, the opening of

Re: perl-support for vim help needed

2008-05-10 Thread Richard Lee
Chas. Owens wrote: On Sat, May 10, 2008 at 1:42 AM, Richard Lee <[EMAIL PROTECTED]> wrote: does anyone use perl-support for vim here? I installed it but having trouble bringing up the menus.. does anyone uses this? and know how to bring up the menu? If the root menu 'Perl' is not visible c

Re: perl-support for vim help needed

2008-05-10 Thread Chas. Owens
On Sat, May 10, 2008 at 1:42 AM, Richard Lee <[EMAIL PROTECTED]> wrote: > > does anyone use perl-support for vim here? > > I installed it but having trouble bringing up the menus.. > > does anyone uses this? and know how to bring up the menu? > > If the root menu 'Perl' is not visible call it with

perl-support for vim help needed

2008-05-09 Thread Richard Lee
does anyone use perl-support for vim here? I installed it but having trouble bringing up the menus.. does anyone uses this? and know how to bring up the menu? If the root menu 'Perl' is not visible call it with the item "Load Perl Support" from the standard Tools-menu. <-- where is this sta

Re: Help needed with insignificant problem using format and write

2007-08-21 Thread Mathew Snyder
Chas Owens wrote: > On 8/21/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > snip >> It would appear that for all but the first iteration, this is happening. >> However, something during the first time through seems to cause the flag to >> not >> be what it should. >> >> I've tried changing where th

Re: Help needed with insignificant problem using format and write

2007-08-21 Thread Chas Owens
On 8/21/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: snip > It would appear that for all but the first iteration, this is happening. > However, something during the first time through seems to cause the flag to > not > be what it should. > > I've tried changing where the TOP is in the script, when

Re: Help needed with insignificant problem using format and write

2007-08-21 Thread Mathew Snyder
Chas Owens wrote: > On 8/20/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: >> Paul Lalli wrote: >>> On Aug 20, 3:10 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: I run a script which creates a small report for different users of a system we have here at work. The report is a simple te

Re: Help needed with insignificant problem using format and write

2007-08-20 Thread Chas Owens
On 8/20/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > Paul Lalli wrote: > > On Aug 20, 3:10 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: > >> I run a script which creates a small report for different users of a > >> system we > >> have here at work. The report is a simple text document formated

Re: Help needed with insignificant problem using format and write

2007-08-20 Thread Mathew Snyder
Paul Lalli wrote: > On Aug 20, 3:10 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: >> I run a script which creates a small report for different users of a system >> we >> have here at work. The report is a simple text document formated with, of >> all >> things, the format function. It uses a TOP

Re: Help needed with insignificant problem using format and write

2007-08-20 Thread Paul Lalli
On Aug 20, 3:10 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: > I run a script which creates a small report for different users of a system we > have here at work. The report is a simple text document formated with, of all > things, the format function. It uses a TOP to create a header for each of

Help needed with insignificant problem using format and write

2007-08-20 Thread Mathew Snyder
I run a script which creates a small report for different users of a system we have here at work. The report is a simple text document formated with, of all things, the format function. It uses a TOP to create a header for each of our customers which a user has worked with. For some reason the f

Fw: Help needed created this data structure

2007-07-10 Thread Chris Charley
- Original Message - From: "Chris Charley" <[EMAIL PROTECTED]> To: "klute" <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2007 7:17 PM Subject: Re: Help needed created this data structure - Original Message - From: "klute" <[EMA

Re: Help needed created this data structure

2007-07-10 Thread klute
t; > From: "klute" <[EMAIL PROTECTED]> > > > > Newsgroups: perl.beginners > > > > To: > > > > Sent: Monday, July 09, 2007 4:20 PM > > > > Subject: Help needed created this data > structure > > > > > > > &

Re: Help needed created this data structure

2007-07-10 Thread klute
roups: perl.beginners > > > To: > > > Sent: Monday, July 09, 2007 4:20 PM > > > Subject: Help needed created this data structure > > > > > > > Hi All, > > > > > > > > I am new to Perl and was hoping to get advice > on > &g

Re: Help needed created this data structure

2007-07-09 Thread usenet
On Jul 9, 2:04 pm, [EMAIL PROTECTED] (Klute) wrote: > Here is the sample data: That helps us provide a meaningful reply. Something like this will work, though you may want to make the regexp's a little more generalized: #!/usr/bin/perl use strict; my (%affiliate, $parent, $group); whi

Re: Help needed created this data structure

2007-07-09 Thread D. Bolliger
klute am Montag, 9. Juli 2007 23:04: > --- Chris Charley <[EMAIL PROTECTED]> wrote: > > - Original Message - > > From: "klute" <[EMAIL PROTECTED]> > > Newsgroups: perl.beginners > > To: > > Sent: Monday, July 09, 2007 4:20

Re: Help needed created this data structure

2007-07-09 Thread klute
D]> wrote: > > - Original Message - > From: "klute" <[EMAIL PROTECTED]> > Newsgroups: perl.beginners > To: > Sent: Monday, July 09, 2007 4:20 PM > Subject: Help needed created this data structure > > > > Hi All, > > > > I am ne

Re: Help needed created this data structure

2007-07-09 Thread Chris Charley
- Original Message - From: "klute" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Monday, July 09, 2007 4:20 PM Subject: Help needed created this data structure Hi All, I am new to Perl and was hoping to get advice on creating the following data struc

Help needed created this data structure

2007-07-09 Thread klute
Hi All, I am new to Perl and was hoping to get advice on creating the following data structure: I have an Affiliate Parent Groups, Affiliate Groups, and Affiliates. Each affiliate has affiliateId, affiliateName. I guess what I'd like to have is an array of hashes where the array would contain Af

Re: help needed!!

2007-07-04 Thread Tom Phoenix
On 7/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: File1:example.txt ProbeNames Exp1Exp2Exp3Exp4Exp5 244901_at 24.346.437.419.559.6 244902_at 36.692.449.542.4 29.6 244903_at 46.4

help needed!!

2007-07-04 Thread [EMAIL PROTECTED]
oops sorry for the last mail...i pressed the enter button inadvertently. neways here is the problem... File1:example.txt ProbeNames Exp1Exp2Exp3Exp4Exp5 244901_at 24.346.437.419.559.6 244902_at 36.692.449.542.4

Re: Help needed on font colour on the terminal.

2006-09-29 Thread sanobabu
Guo Remy wrote: Great! it's as easy as use ANSI in telnet BBS! :-D many thanks! Oh! the great BBS, never had a chance to see it myself. !..! thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help needed on font colour on the terminal.

2006-09-29 Thread Guo Remy
Great! it's as easy as use ANSI in telnet BBS! :-D many thanks! 2006/9/30, Rob Dixon <[EMAIL PROTECTED]>: Guo Remy wrote: > hi all, > i'm trying to display colourful font on the terminal of cmd.exe under > Windows. but as i checked the documentation of TERM::ANSICOLOR, it seems to > not work w

Re: Help needed on font colour on the terminal.

2006-09-29 Thread Rob Dixon
Guo Remy wrote: hi all, i'm trying to display colourful font on the terminal of cmd.exe under Windows. but as i checked the documentation of TERM::ANSICOLOR, it seems to not work with cmd.exe under Windows OS... do you have any idea to make this happen? Thanks in advance. :) Hi Remy The comman

Help needed on font colour on the terminal.

2006-09-29 Thread Guo Remy
hi all, i'm trying to display colourful font on the terminal of cmd.exe under Windows. but as i checked the documentation of TERM::ANSICOLOR, it seems to not work with cmd.exe under Windows OS... do you have any idea to make this happen? Thanks in advance. :) regards, remy

Re: regex help needed

2006-09-28 Thread Jay Savage
On 9/27/06, Owen <[EMAIL PROTECTED]> wrote: On Wed, 27 Sep 2006 13:11:17 -0600 "Gerald Wheeler" <[EMAIL PROTECTED]> wrote: > I am looking for: ab1in line1 > and looking for: ab2 in line 2 > > actually ab1 and ab2 immediately follow the last "/" (there are > numerous "/" on the line (w/o

Re: regex help needed

2006-09-27 Thread Owen
On Wed, 27 Sep 2006 13:11:17 -0600 "Gerald Wheeler" <[EMAIL PROTECTED]> wrote: > I am looking for: ab1in line1 > and looking for: ab2 in line 2 > > actually ab1 and ab2 immediately follow the last "/" (there are > numerous "/" on the line (w/o quotes)) > > These are not working. can som

regex help needed

2006-09-27 Thread Gerald Wheeler
I am looking for: ab1in line1 and looking for: ab2 in line 2 actually ab1 and ab2 immediately follow the last "/" (there are numerous "/" on the line (w/o quotes)) These are not working. can some explain what these say and what they should say (syntax) to return the results I'm looking f

  1   2   3   >