memory allocation in perl

2004-07-12 Thread Anish Mehta
Hello Everyone! I would like to have your consideration regarding my query. I want to know about the memory allocation of variables in perl.. Thanks in advance. Regards, A+ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Regex for numbers and text

2004-07-12 Thread Tim Johnson
Another good module for helping you understand what a complicated regex MEANS (which will help you know how to fix it) is YAPE::Regex::Explain. It also helps with some issues where a regex may be working, but not for the reason you think. -Original Message- From: Jerry

Re: pls help

2004-07-12 Thread u235sentinel
shashideep nuggehalli wrote: Thank you for ur concern . Btw , I do not really appreciate the use of the term "sucker" and I am not sure if such language could be used in public mailing lists with out understanding the proper reasons for the mail. I simply agreed with the other poster as pasted bel

Re: Regex for numbers and text

2004-07-12 Thread Randy W. Sims
Jerry Preston wrote: Jeff, What needs to be changed in /(-?\d+\.?\d*)/ so that it also see number like .59? This is why I like to recommend Regexp::Common. But... Here is an example from Jeffrey Friedl's, "Mastering Regular Expressions": /-?([0-9]+(\.[0-9]*)?|\.[0-9]+)/ perlified: /-?(?:\d+(?:\.\d*

Re: Regex for numbers and text

2004-07-12 Thread Gunnar Hjalmarsson
Jerry Preston wrote: Jeff, What needs to be changed in /(-?\d+\.?\d*)/ so that it also see number like .59? Have you seen any of the Perl documentation sections that deals with regular expressions? This one, for instance, for a quick overview: http://www.perldoc.com/perl5.8.4/pod/perlrequick.

RE: Regex for numbers and text

2004-07-12 Thread Jerry Preston
Jeff, What needs to be changed in /(-?\d+\.?\d*)/ so that it also see number like .59? Thanks, Jerry -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED] Sent: Sunday, July 11, 2004 9:20 PM To: Gunnar Hjalmarsson Cc: [EMAIL PROTECTED] Subject: Re: Regex for numbers an

Re: garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Randy W. Sims
Ken Rearick wrote: I wrote an application last week and when I attempted to compile it on both a sun and pc using perl5 I keep getting garbage error message when the character count of the source was greater than about 16,000 characters. If I went into the source and removed white spaces to redu

Re: Regex for numbers and text (ANS)

2004-07-12 Thread Adam
Jerry, Jerry> What am I doing wrong? Such an open question. I assume you mean what is wrong with your code. To answer, it isn't doing what you want it to do :-) Jerry> I am trying to setup a single regex Jerry> to breakdown the following lines: Jerry> Jerry> Jerry2.74 4.5

Re: Clearing up Google history

2004-07-12 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: How do I clear up my "google history" (IE history can be cleared via Tools, Options). Hhrruh? I think you have the wrong mailing list :) That is, from any browser, when a user enters "www.google.com", the user is presented with a dialog box, any previously entered text is

Re: directory and files

2004-07-12 Thread Gunnar Hjalmarsson
Thomas Browner wrote: Can someone help me with this scrip that I am writing. I am trying to get file and directory create date and if it is 7 days old then delete it. I hoping someone can point me to a starting point. This article may give you an idea: http://groups.google.com/groups?selm=boul94%24

Re: Pop up calendar

2004-07-12 Thread Owen
On Mon, 12 Jul 2004 00:29:52 -0700 (PDT) Melis Mutlu <[EMAIL PROTECTED]> wrote: > I have a form with a date field (created by > CGI::Quickform). I would like to add a pop up calendar > so I can pick dates easily. Does anybody know how I > can do that? Is there any module I can use for that? Yo

RE: Clearing up Google history

2004-07-12 Thread Tim Johnson
This isn't a Perl question. Please post it elsewhere. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:37 PM To: [EMAIL PROTECTED] Subject: Clearing up Google history How do I clear up my "google history" (IE history can be cleared via

in a TK-GUI how to show grand-children of a child from toolbar.

2004-07-12 Thread Marco Perl
I developed a TK-module for ActivePerl in Win-2000 env. this script has a toolbar with 5 toolbar-items. one of these items called "Tests" has a child called "Child...>" who has grand-children [choice1, choice2, choice3]. I want to click on "Child...>" and diplay grand-children to its right. i.e.

Re: MIME coding & flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 08:21, jason corbett wrote: > > Here is the script that I am using. Remember that the script creates > the file perfectly and stores the file with data in a folder on the > server. The emailed copy is being sent out blank. > > #!/usr/bin/perl use warnings; > use strict; > u

RE: Clearing up Google history

2004-07-12 Thread John Pretti
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 3:37 PM To: [EMAIL PROTECTED] Subject: Clearing up Google history How do I clear up my "google history" (IE history can be cleared via Tools, Options). That is, from any browser, when a

Clearing up Google history

2004-07-12 Thread William . Ampeh
How do I clear up my "google history" (IE history can be cleared via Tools, Options). That is, from any browser, when a user enters "www.google.com", the user is presented with a dialog box, any previously entered text is stored, how do I clear or turn off the history caching feature in google

RE: directory and files

2004-07-12 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Thomas Browner wrote: > Can someone help me with this scrip that I am writing. I am trying to > get file and directory create date and if it is 7 days old then delete > it. I hoping someone can point me to a starting point. > > Thanks > > *Thomas > > * You should be able to use File::Fi

directory and files

2004-07-12 Thread Thomas Browner
Can someone help me with this scrip that I am writing. I am trying to get file and directory create date and if it is 7 days old then delete it. I hoping someone can point me to a starting point. Thanks *Thomas * -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: How to speed up processing two big files

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 12:20, John W. Krahn wrote: > > open SINK, '>>newFile.dat' or die "can't open the newFile.dat: $!"; > for my $id ( sort { $control_ids{ $a }{ order } <=> $control_ids{ $a }{ order } } > keys %control_ids ) { Oops, that _should_ be: for my $id ( sort { $control_ids{ $a }{ o

Re: My first perl script

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 01:47, Paul Smith wrote: > > Thanks, Gunnar. I understand your point of view. Meanwhile, John > Krahn has kindly provided a solution for my problem, which I very > much thank. However, to convince you that I was trying to solve the > problem by myself, I quote below the scrip

Re: How to speed up processing two big files

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 10:59, Tang, Hannah (NIH/NLM) wrote: > > Hi, Hello, >I have two big text files, I need to read one line from first > file, write some information from this line to a new file, and search > second file to find lines with same control_id, and write more > information to t

RE: garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Wiggins d Anconia
Please group reply so others can help and be helped, and so your posts don't get accidentally ignored... also please bottom post. > This is perl, v5.8.0 built for sun4-solaris > > Copyright 1987-2002, Larry Wall > > Perl may be copied only under the terms of either the Artistic License or the >

Re: MIME coding & flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread jason corbett
I will move the close(ERRORLOG) and the close(OUTFILE) as you pointed out and retry. As for the parameters, I am passing parameters to only certain functions. I will however take note of the mistake with logresults(). Do you think that not passing parameters to other functions is incorrect? I am

How to speed up processing two big files

2004-07-12 Thread Tang, Hannah (NIH/NLM)
Hi, I have two big text files, I need to read one line from first file, write some information from this line to a new file, and search second file to find lines with same control_id, and write more information to the new file, I wrote in perl, but it tooks half day to finish joining the two fil

RE: Pop up calendar

2004-07-12 Thread West, William M
>On Mon, 12 Jul 2004 00:29:52 -0700 (PDT), [EMAIL PROTECTED] (Melis >Mutlu) wrote: > >>Hi, >> >>I have a form with a date field (created by >>CGI::Quickform). I would like to add a pop up calendar >>so I can pick dates easily. Does anybody know how I >>can do that? Is there any module I can use f

Re: MIME coding & flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread Jenda Krynicky
From: jason corbett <[EMAIL PROTECTED]> > Here is the script that I am using. Remember that the script creates > the file perfectly and stores the file with data in a folder on the > server. The emailed copy is being sent out blank. Seems the problem IS in what I said. Try to move the clos

Re: EOF and library question...

2004-07-12 Thread JupiterHost.Net
package Foo; ... 1; Then in your script use Foo; the 1; returns true so use knows it was successful :) While true, that doesn't signal an EOF to the compiler, that is just a statement. Any last statement's value can be used as the library's true/false return. To tell the compiler to stop reading f

perl.beginners Weekly list FAQ posting

2004-07-12 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Re: garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Wiggins d Anconia
> I wrote an application last week and when I attempted to compile it on > both a sun and pc using perl5 I keep getting garbage error message when > the character count of the source was greater than about 16,000 > characters. If I went into the source and removed white spaces to reduce > the c

Re: MIME coding & flags for sending a .csv or Excel file (Here is the code)

2004-07-12 Thread jason corbett
Here is the script that I am using. Remember that the script creates the file perfectly and stores the file with data in a folder on the server. The emailed copy is being sent out blank. Thanks, JC #!/usr/bin/perl use strict; use DBI; use lib '/home/samcsm/jason/myperl/lib/perl5/site_perl/';

garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Ken Rearick
I wrote an application last week and when I attempted to compile it on both a sun and pc using perl5 I keep getting garbage error message when the character count of the source was greater than about 16,000 characters. If I went into the source and removed white spaces to reduce the character c

RE: Pop up calendar

2004-07-12 Thread Charles K. Clarkson
Melis Mutlu <[EMAIL PROTECTED]> wrote: : I have a form with a date field (created by : CGI::Quickform). I would like to add a pop up : calendar so I can pick dates easily. Does : anybody know how I can do that? Is there any : module I can use for that? If you can use a Javascript solution. I

Re: how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread William . Ampeh
Simply wrap it around a batch file with a pause at the end. That is: @echo off path\to\my\script echo . echo . echo . - D O N E - echo . echo . pause __ William Ampeh (x3939) Federal Reserve Board -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: EOF and library question...

2004-07-12 Thread Wiggins d Anconia
> > > Kathryn Tate wrote: > > How does one signal to the compiler that the EOF has been reached > > when writing a library file? > > > > Hello, > > > Foo.pm: > > package Foo; > ... > 1; > > Then in your script > use Foo; > > the 1; returns true so use knows it was successful :) > While tr

Re: EOF and library question...

2004-07-12 Thread JupiterHost.Net
Kathryn Tate wrote: How does one signal to the compiler that the EOF has been reached when writing a library file? Hello, Foo.pm: package Foo; ... 1; Then in your script use Foo; the 1; returns true so use knows it was successful :) HTH Lee.M - JupiterHost.Net Thanks, Kathryn -- To unsubscribe, e

Shareit information via Perl

2004-07-12 Thread Nicolay A. Vasiliev
Hello, there! I am trying to connect into ShareIt system. I need to refresh my sales information automatically. I know LWP is power to help me, but I try and get nothing positive yet. What I am doing: #!/usr/bin/perl use LWP::UserAgent; use LWP::Simple; use HTTP::Request::Common qw(POST); use st

Re: My first perl script

2004-07-12 Thread Paul Smith
(Please, be patient with my ignorance.) I for one am, don't worry. But I'm *not* patient with suspected laziness. ;-) I'd like to see you post some code, where you show us that you are seriously trying to learn, and where you have at least tried to solve this new problem. Thanks, Gunnar. I understa

Re: My first perl script

2004-07-12 Thread Gunnar Hjalmarsson
Paul Smith wrote: Thanks, John and Gunnar. You're welcome. (Please, be patient with my ignorance.) I for one am, don't worry. But I'm *not* patient with suspected laziness. ;-) I'd like to see you post some code, where you show us that you are seriously trying to learn, and where you have at least

EOF and library question...

2004-07-12 Thread Kathryn Tate
How does one signal to the compiler that the EOF has been reached when writing a library file? Thanks, Kathryn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[SOLVED] RE: how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread Marco Perl
my first email's subject line was not good/descriptive. so I tried a better subject line on my second email. in any rate, thanks for traffic update/info. I am new on this and I appreciate your concern. regards, Marco. --- Tim Johnson <[EMAIL PROTECTED]> wrote: > Please don't send the same questi

[SOLVED] RE: Could you please help with a PERL/TK question.

2004-07-12 Thread Marco Perl
adding ; did not work, but running it from cmd shell did. thank you so much. regards, Marco. --- Toby Stuart <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Marco Perl [mailto:[EMAIL PROTECTED] > > Sent: Monday, 12 July 2004 4:19 PM > > To: ; [EMAIL PROTECTED] > > Subjec

Pop up calendar

2004-07-12 Thread Melis Mutlu
Hi, I have a form with a date field (created by CGI::Quickform). I would like to add a pop up calendar so I can pick dates easily. Does anybody know how I can do that? Is there any module I can use for that? Regards, Melis __ Do you Yahoo!? Yaho

RE: how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread Tim Johnson
Please don't send the same question to the list twice in a row. The truth is there aren't many people answering questions on a Sunday night (US), but re-sending the question doesn't increase your chances of having your question answered, but some people really get irked by the extra traffic on

Launching scripts via command prompt [WAS RE: Could you please help with a PERL/TK question.]

2004-07-12 Thread Tim Johnson
Just one quick note: I've seen a lot of people say that this is the way to run a script from the command-line, but any script that you can run by double-clicking should also be able to be run by just typing in the name of the script at the command-line (provided you are in the same directory