Re: program fails to write some entries in log

2008-07-10 Thread icarus
On Jul 10, 8:36 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > icarus wrote: > > what this does: it classifies a file based on its modification date. > > > example: xfile1 is dated July 9, 2008. If it doesn't exist, the > > program creates a > > directory structure 2008/July/09 and places xfile1 t

Re: program fails to write some entries in log

2008-07-10 Thread Rob Dixon
John W. Krahn wrote: > Rob Dixon wrote: >> John W. Krahn wrote: >>> #extract year, month, day when $xfile was last modified >>> # eg 2008/July/9 >>> my $dir = strftime '%Y/%b/%-d', localtime( ( lstat $xfile )[9] ) >> I hoped that was what I was looking for, but the forma

Re: program fails to write some entries in log

2008-07-10 Thread John W. Krahn
Rob Dixon wrote: John W. Krahn wrote: #extract year, month, day when $xfile was last modified # eg 2008/July/9 my $dir = strftime '%Y/%b/%-d', localtime( ( lstat $xfile )[9] ) I hoped that was what I was looking for, but the format %- creates nothing and the 'd' is s

Re: program fails to write some entries in log

2008-07-10 Thread Rob Dixon
John W. Krahn wrote: > > #extract year, month, day when $xfile was last modified > # eg 2008/July/9 > my $dir = strftime '%Y/%b/%-d', localtime( ( lstat $xfile )[9] ) I hoped that was what I was looking for, but the format %- creates nothing and the 'd' is simply. >

Re: program fails to write some entries in log

2008-07-10 Thread John W. Krahn
icarus wrote: what this does: it classifies a file based on its modification date. example: xfile1 is dated July 9, 2008. If it doesn't exist, the program creates a directory structure 2008/July/09 and places xfile1 there. Then it creates a log with the steps done. So...in the system the resul

Re: program fails to write some entries in log

2008-07-10 Thread Rob Dixon
icarus wrote: > what this does: it classifies a file based on its modification date. > > example: xfile1 is dated July 9, 2008. If it doesn't exist, the > program creates a > directory structure 2008/July/09 and places xfile1 there. > Then it creates a log with the steps done. > > So...in the s

Re: Program to fetch user information

2008-06-13 Thread Jay Savage
On Fri, Jun 13, 2008 at 11:19 AM, Gunwant Singh <[EMAIL PROTECTED]> wrote: > Hi there, > > I am still waiting for any suggestions/recommendations. > > Cheers. > please don't top-post. Most people only read this list at most once a day, and frequently less than that. Don't panic if you don't get a

Re: Program to fetch user information

2008-06-13 Thread Rob Dixon
Gunwant Singh wrote: > > I am still waiting for any suggestions/recommendations. Yes, we can see that. Be patient. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Program to fetch user information

2008-06-13 Thread Gunwant Singh
Hi there, I am still waiting for any suggestions/recommendations. Cheers. Gunwant Singh wrote: Hi Rob, I have interpolated the server and the user name as in this: /Win32::NetAdmin::UserGetAttributes("servername","myself",my $password,my $passwordAge,my $privilege,my $homeDir,my $comment,my

Re: Program to fetch user information

2008-06-12 Thread Gunwant Singh
Hi Rob, I have interpolated the server and the user name as in this: /Win32::NetAdmin::UserGetAttributes("servername","myself",my $password,my $passwordAge,my $privilege,my $homeDir,my $comment,my $flags,my $scriptPath); / The only thing it shows is this: /The homedir for the user is/ I

Re: Program to fetch user information

2008-06-11 Thread Rob Dixon
Gunwant Singh wrote: > > I have written a small Perl script so to fetch information about the > user. Here is the code: > > /1use strict; > 2use warnings; > 3use Win32::Netadmin; > 4Win32::NetAdmin::UserGetAttributes(my $server,my $userName,my > $password,my $passwordAge,my $pri

Re: Program is exiting on a failure

2005-08-26 Thread Tom Allison
Wiggins d'Anconia wrote: Chris Lyon wrote: I seem to be erroring out @ the $session->login portion of my program because the module that I am call is saying the password/username is bad. How do I trap the error and exit cleanly without just dumping from the application: login failed: access d

Re: Program is exiting on a failure

2005-08-25 Thread Wiggins d'Anconia
Chris Lyon wrote: > I seem to be erroring out @ the $session->login portion of my program > because the module that I am call is saying the password/username is > bad. How do I trap the error and exit cleanly without just dumping > from the application: > > > login failed: access denied or bad us

Re: Program error

2005-04-01 Thread Felix Geerinckx
On 01/04/2005, GR Kumaran wrote: > #!c:/sieperl/perl/5.8.0/bin/MSWin32-x86-perlio/perl > > use CGI; > use warnings; > use strict; > > my $page = new CGI; > > if (DEBUG) { > open(DEBUGFILE, ">>debug.txt") || die; > $page->save(DEBUGFILE); > close(DEBUGFILE); > } > =

Re: Program to read data from serial port, filter and process

2005-01-26 Thread John W. Krahn
Jason Balicki wrote: Charles K. Clarkson wrote: Repost your script to the previous web link and I'll take another look on Thursday. I will do that. In the meantime, I've implimented many of the suggestions everyone has given me, but I'm a bit stumped on this: I have t

RE: Program to read data from serial port, filter and process

2005-01-26 Thread Jason Balicki
Charles K. Clarkson wrote: > Repost your script to the previous web link and I'll take > another look on Thursday. I will do that. In the meantime, I've implimented many of the suggestions everyone has given me, but I'm a bit stumped on this: I have the function:

RE: Program to read data from serial port, filter and process

2005-01-25 Thread Charles K. Clarkson
Jason Balicki <[EMAIL PROTECTED]> wrote: : if you've got any helpful tips though... :) Coping with Scoping: http://perl.plover.com/FAQs/Namespaces.html Repost your script to the previous web link and I'll take another look on Thursday. HTH, Charles K. Clarkson -- Mobile Homes Specialist 2

RE: Program to read data from serial port, filter and process

2005-01-25 Thread Jason Balicki
Charles K. Clarkson wrote: > As John already posted, you should be using warnings and > strict in your script. Below the first line (the shebang) > place these lines. This will break your script. You'll need > to ask some questions and read the documentation to get it

RE: Program to read data from serial port, filter and process

2005-01-25 Thread Charles K. Clarkson
Jason Balicki <[EMAIL PROTECTED]> wrote: : Some people emailed me privately and asked that I do post : what I've come up with to the list. : : I wrote this program over the course of the last week, : starting with very little perl experience (I've modified : others code, and small things like tha

Re: Program to read data from serial port, filter and process

2005-01-24 Thread John W. Krahn
Jason Balicki wrote: Some people emailed me privately and asked that I do post what I've come up with to the list. I wrote this program over the course of the last week, starting with very little perl experience (I've modified others code, and small things like that) and acomplished a goal that pri

RE: Program to scan dictionary for words with letters in a particul ar set?

2004-05-28 Thread McMahon, Chris
List::Compare. http://search.cpan.org/search?query=list-compare&mode=all -Chris -Original Message- From: Jim Witte [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 10:15 PM To: [EMAIL PROTECTED] Subject: Program to scan dictionary for words with letters in a particular set? Gi

Re: Program to scan dictionary for words with letters in a

2004-05-27 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jose Alves De Castro) writes: >On Thu, 2004-05-27 at 11:21, Ramprasad A Padmanabhan wrote: >> But to think of it there is one hitch >> >> suppose my string is 'god' >> >> Assume >> $word = "good" >> $r = qr/^[god]+$/ >> >> >> then $r would mat

Re: Program to scan dictionary for words with letters in a particular set?

2004-05-27 Thread Jose Alves de Castro
On Thu, 2004-05-27 at 11:21, Ramprasad A Padmanabhan wrote: > On Thu, 2004-05-27 at 15:09, Jose Alves de Castro wrote: > That was simply neat. I had read in a perl book ' there is always a > shorter way in perl '. I think this proves it. > > But to think of it there is one hitch > > suppose my s

Re: Program to scan dictionary for words with letters in a particular set?

2004-05-27 Thread Ramprasad A Padmanabhan
On Thu, 2004-05-27 at 15:09, Jose Alves de Castro wrote: > On Thu, 2004-05-27 at 06:14, Jim Witte wrote: > > Given a file of words W such as 'cat dog at home ...' (or perhaps read > > into an array, though that would be a very large array), and a set of > > letters L (a string 'aoeuidhtns' - perh

Re: Program to scan dictionary for words with letters in a particular set?

2004-05-27 Thread Jose Alves de Castro
On Thu, 2004-05-27 at 06:14, Jim Witte wrote: > Given a file of words W such as 'cat dog at home ...' (or perhaps read > into an array, though that would be a very large array), and a set of > letters L (a string 'aoeuidhtns' - perhaps put into a array), how would > I write a program to extract

Re: Program to scan dictionary for words with letters in a particular set?

2004-05-26 Thread Oliver Schnarchendorf
On Thu, 27 May 2004 00:14:57 -0500, Jim Witte wrote: > Given a file of words W such as 'cat dog at home ...' > and a set of letters L 'aoeuidhtns' > how would I write a program to extract all words in W whose letters > are all in L? Here is an overview that should get you going: Split L with a

Re: Program to scan dictionary for words with letters in a particular set?

2004-05-26 Thread Ramprasad A Padmanabhan
I think this is more of an algorithm question, not perl tho very interesting to do it in perl. I am not gr8 in algorithms , but this is what I will do Write a function that will return all the letters sorted in a word For eg for the word home , return ehmo sub wkey { my(@l)=sort split(//,$_[

Re: Program close

2004-02-11 Thread Karl Hakmiller
- Original Message - From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "Anthony Vanelverdinghe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 10, 2004 12:41 PM Subject: RE: Program close --

Re: Program close

2004-02-10 Thread R. Joseph Newton
Anthony Vanelverdinghe wrote: > Hi > > When I run a very simple Perl program, it closes immediately after it has > done. So that I can't even see the output. How can I solve this? > > Thanks in advance! I take it you are running Windows? If so, you should be running Perl from the command prompt.

RE: Program close

2004-02-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
-Original Message- From: Anthony Vanelverdinghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 09:30 To: [EMAIL PROTECTED] Subject: Program close Hi When I run a very simple Perl program, it closes immediately after it has done. So that I can't even see the output. How can I

RE: Program close

2004-02-10 Thread Dan Muey
> Hi Howdy > > When I run a very simple Perl program, it > closes immediately after it has > done. So that I can't even see the output. How > can I solve this? > Don't use windows! :) Or try executeing it from a dos prompt directly. >

RE: Program close

2004-02-10 Thread Ned Cunningham
Create a simple .bat file call the Perl script and add a pause command after it. :) Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: Anth

RE: Program to reformat Perl code?

2004-02-04 Thread John McKown
On Wed, 4 Feb 2004, Toby Stuart wrote: > > http://perltidy.sourceforge.net/ > Got it! Works! Thanks much! -- Maranatha! John McKown -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Program to reformat Perl code?

2004-02-03 Thread Tim Johnson
Look for PerlTidy. -Original Message- From: John McKown [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 6:28 PM To: Perl Beginners Mailing List Subject: Program to reformat Perl code? I have some fairly ugly Perl code which I generated sort of ad-hoc from a "file descripto

RE: Program to reformat Perl code?

2004-02-03 Thread Toby Stuart
> -Original Message- > From: John McKown [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 04, 2004 1:28 PM > To: Perl Beginners Mailing List > Subject: Program to reformat Perl code? > > > I have some fairly ugly Perl code which I generated sort of > ad-hoc from a > "file descrip

Re: Program to write code

2004-01-30 Thread Terry Ashley
Marcelo wrote: Hi, could anyone recommend a good program to write code, currently using notepad. Thanks a lot in advance. Marcelo I use Textpad, which is a really great editor, that has allot of the functionality that other commercial apps like CodeWarrior and Visual SlickEdit have. -- To uns

RE: Program to write code

2004-01-22 Thread Tim Johnson
43 AM To: [EMAIL PROTECTED] Subject: Re: Program to write code I use OptiPerl from www.xakra.com Any one else use this? L Hernsen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Program to write code

2004-01-22 Thread Luinrandir Hernsen
I use OptiPerl from www.xakra.com Any one else use this? L Hernsen - Original Message - From: "McMahon, Chris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 2:32 PM Subject: RE: Program to write code >

RE: Program to write code

2004-01-22 Thread McMahon, Chris
- > From: Owen [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 22, 2004 1:03 AM > To: [EMAIL PROTECTED] > Subject: Re: Program to write code > > > On Wed, 21 Jan 2004 19:32:56 -0300 > "Marcelo" <[EMAIL PROTECTED]> wrote: > > > Hi, could anyone

Re: Program to write code

2004-01-22 Thread Owen
On Wed, 21 Jan 2004 19:32:56 -0300 "Marcelo" <[EMAIL PROTECTED]> wrote: > Hi, could anyone recommend a good program to write code, currently using notepad. If you are using Windows, there are a number of "Notepad" improved editors. Google for "windows text editors" and you will get them all I gu

Re: Program to write code

2004-01-21 Thread Dan Anderson
On Wed, 2004-01-21 at 17:32, Marcelo wrote: > Hi, could anyone recommend a good program to write code, currently using notepad. I really like Emacs, but it has a high learning curve. Check out: http://www.xemacs.org/ And, of course, not everyone likes Emacs. Better check out ViM as well: http:

Re: program logic not right-

2003-01-31 Thread Eri Mendz
> Thus spoke PRADEEP GOEL <[EMAIL PROTECTED]> last [2003-01-31 10:48]: > Dear Senior Programmer Analyst > > did it solves the problem ? > I don't think so . > > there is one very simple logical flow > if ($temp_unit eq 'C' or 'c'){ > should be > if ($temp_unit eq 'C' or $temp_unit eq 'c'){ > that

Re: program logic not right-

2003-01-30 Thread PRADEEP GOEL
om F to C in last print command is well understood. - Original Message - From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "'Eri Mendz'" <[EMAIL PROTECTED]>; "perl digest" <[EMAIL PROTECTED]> Sent:

Re: program logic not right

2003-01-30 Thread Janek Schleicher
On Thu, 30 Jan 2003 21:58:10 +0300, Eri Mendz wrote: > Have here a temperature conversion program im trying to "perfect" but no > chance, its not working right. The input validation portion is fine, im > satisfied likewise with the conversion to celsius. My problem is > conversion to fahrenheit:

Re: program logic not right

2003-01-30 Thread John W. Krahn
Eri Mendz wrote: > > Good day all, Hello, > Have here a temperature conversion program im trying to "perfect" but no > chance, its not working right. The input validation portion is fine, im > satisfied likewise with the conversion to celsius. My problem is > conversion to fahrenheit: the answe

RE: program logic not right

2003-01-30 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Eri Mendz wrote: > Good day all, > > Have here a temperature conversion program im trying to "perfect" but > no chance, its not working right. The input validation portion is > fine, im satisfied likewise with the conversion to celsius. My > problem is conversion to fahrenheit: the answer is not

Re: Program Stability Issue

2002-10-12 Thread rob
Chris Benco wrote: >The problem is that the script is supposed to loop basically forever until >it finds something. It does this for awhile. The program works for about >24 hours at which point it just stops. I've tried changing to loop time > > As a wag.. is it possible you are checking for

Re: Program Stability Issue

2002-10-11 Thread Chris Benco
James Edward Gray II To: "Chris Benco" <[EMAIL PROTECTED]>

Re: Program Stability Issue

2002-10-11 Thread James Edward Gray II
I'm not familiar with "notes email" or the Win32::OLE module you're using, so it's unlikely that I can solve your problem. I do have a few general observations to offer though. First, checking something like e-mail every one second, may border on obsessive compulsive behavior!Seriously

Re: Program Stability Issue

2002-10-11 Thread Paul Johnson
Chris Benco said: > If anyone has any ideas on how to improve this programs stability, how > to make perl programs more stably in general, or even a possible reason > why this, or any general purpose program might crash for unknown > reasons let me know. Looking for input of any kind on this is

Re: program help -> regular expressions

2001-11-09 Thread John W. Krahn
Greg Sarsons wrote: > > Hopefully someone can point/help me out. What is below is an extract of > packet capture ... similar to tcpdump. What I want to do is to > determine the amount of traffic a port has on it. I just plan on > redirecting the output to this program. > > My thoughts are to

RE: program help -> regular expressions

2001-11-08 Thread Wagner-David
Here is a shot,. Unsure what to do when you find a icmp(in this becomes port 0), but would need to address this since you talk about but don't say what you want to do: #!perl -w my %MyHash = (); my $MyPort; my $MyType; my $MyLen; my ( $MyLine1, $MyLine2, $MyLine3) ; while ( ) { ch

Re: PROGRAM!

2001-06-21 Thread Me
> #!/usr/bin/perl -w > > use strict; means you can't just go introducing names willy nilly without telling perl where they come from. which in turn means... > while (<>) { > > @fields = split /*/; you can't do this!. oops. should be my @fields = split /

RE: PROGRAM!

2001-06-21 Thread Govinderjit Dhinsa
ME wrote: > You want to print out array elements 0 (for the ID), 3 (branch), > and -3 through -7 (address), at least I think that will work. > #!/usr/bin/perl -w use strict; while (<>) { @fields = split /*/; for (my $i = -1; $i > -9; --$i) {

Re: PROGRAM!

2001-06-20 Thread Me
[plz keep everthing on list unless there's a particularly good reason to go off list] > > (I need the three data types that are'underlined' and are in 'font > > size 14 large' That sort of formatting doesn't work on this list. (Btw, what you are calling 'data types' are really data items.

Re: PROGRAM HELP!

2001-06-20 Thread Me
> Here is two data examples from the input file > (each data is normally streachted along ONE LINE) : > (I need the three data types that are'underlined' > (ID.NUMBER, BranchNAME, ADDRESS). I don't see anything that is 'underlined'. So I can't tell what's the id number etc. I assume the add

RE: PROGRAM HELP!

2001-06-20 Thread Govinderjit Dhinsa
(Thanks ME, who ever you are) Hi, I have been asked to write a perl script, to format the output in to fields/columns; Description for script: *Read a existing file and put it in my requested format, *Take certain data types from the file (input), (proble