Re: No such file or directory

2008-05-21 Thread anthony brooke
- Original Message From: Jeff Peng <[EMAIL PROTECTED]> To: Perl Beginners Sent: Wednesday, May 21, 2008 15:53:00 Subject: Re: No such file or directory > open(RULES, 'rule.pl') please use full path if you don't know where you are exactly. On Wed, May 21,

Re: No such file or directory

2008-05-21 Thread anthony brooke
anthony brooke wrote: > Hello, I know that this is a very common problem, but I am very sure that > the file exist in that directory, also its permission is -rwxrwxrwx , why > does it give such an error ? What are the other potential problems that cause > this ? Thanks >

Re: No such file or directory

2008-05-21 Thread anthony brooke
anthony brooke wrote: > Hello, I know that this is a very common problem, but I am very sure that > the file exist in that directory, also its permission is -rwxrwxrwx , why > does it give such an error ? What are the other potential problems that cause > this ? Thanks >

No such file or directory

2008-05-20 Thread anthony brooke
Hello, I know that this is a very common problem, but I am very sure that the file exist in that directory, also its permission is -rwxrwxrwx , why does it give such an error ? What are the other potential problems that cause this ? Thanks Send instant messages to your online friends http://uk

Re: Initialize object permanently

2008-05-16 Thread anthony brooke
ere a work around of this with mod_perl ? Thanks - Original Message From: Rob Dixon <[EMAIL PROTECTED]> To: beginner perl mailling list Cc: anthony brooke <[EMAIL PROTECTED]> Sent: Saturday, May 17, 2008 0:47:52 Subject: Re: Initialize object permanently anthony brooke wrote:

Initialize object permanently

2008-05-16 Thread anthony brooke
Hello, I am using Wordnet::QueryData which allow access to a very huge dictionary data. The initialization of object my $wn = WordNet::QueryData->new; took 2 wallclock secs ( 2.36 usr + 0.07 sys = 2.43 CPU) Then the subsequent request for the data is exetremely fast For the lines below too

initialize data permanently

2008-05-14 Thread anthony brooke
Hello, I am using Wordnet::QueryData which allow access to a very huge dictionary data. The initialization of object my $wn = WordNet::QueryData->new; took 2 wallclock secs ( 2.36 usr + 0.07 sys = 2.43 CPU) Then the subsequent request for the data is exetremely fast For the lines below to

Concatenate similar data in array

2008-04-16 Thread anthony brooke
Hello, my logic is really bad, here is I want to do. my @list = qw(a b a a d e e ); I want to compact the array by concatenating the adjacent vowels and consonant together, like for the above it should become, my @list2 = qw(ab aa d ee); How do I get the @list2 ? Thanks. Send instant mess

Re: Fw: Perl maximum execution time

2008-04-14 Thread anthony brooke
: Perl maximum execution time From: anthony brooke <[EMAIL PROTECTED]> > Thanks for the reply, but sometimes I don't know where is the code > that cause the infinite loop. Is there such as thing as perl > configuration file, to set the execution time for any code, any where

Fw: Perl maximum execution time

2008-04-14 Thread anthony brooke
Thanks for the reply, but sometimes I don't know where is the code that cause the infinite loop. Is there such as thing as perl configuration file, to set the execution time for any code, any where in the program just like php.ini file. Thanks. - Original Message From: Chas. Owens <[EM

Re: Perl Serialize object as string

2008-04-06 Thread anthony brooke
Thanks for the reply, I always thought that Dumper is used for debugging purposes, I will look at it deeper. Btw, what you mean by cyclic data ? - Original Message From: Chas. Owens <[EMAIL PROTECTED]> To: anthony brooke <[EMAIL PROTECTED]> Cc: beginner perl maillin

Perl Serialize object as string

2008-04-06 Thread anthony brooke
Hello everyone, I need to serialize an perl object to STRING TEXT, not scalar or file. The Storable module allow serialization to file and scalar variable, but this is not possible for passing between the perl and prolog program, that's why I need it to be string. I tried out the FreezeThaw modu

locate install C code module

2008-04-02 Thread anthony brooke
I had installed the Language::Prolog::Yaswi from http://search.cpan.org/~salva/Language-Prolog-Yaswi-0.14/Yaswi.pm but it is in C code implementation, normally when I install a perl module, it should be located at /usr/local/share/perl/5.8.8 but I can't see where is the Language::Prolog::Yaswi

Install CPAN module in shared hosting

2008-03-28 Thread anthony brooke
Hello, I like to install CPAN modulike like AI::Prolog, I have the Cpanel that have CPAN module installer, but my shared hosting does not allow some modules to be installed like this AI::Prolog, what can I do ? Should I install it in my computer first and then copy the PM files to my web host

Re: Script Required to Check a range of IP's

2006-06-29 Thread Anthony Ettinger
Needs your help on the above Regards Mazhar If it helps, I wrote a script to ping a list of mirrors, from a list of fqdn's... http://perl-e.chovy.com/sample/ping-mirrors http://perl-e.chovy.com/sample/ping-mirrors.txt -- Anthony Ettinger Resume: http://chovy.dy

Re: Comparing dates

2006-06-25 Thread Anthony Ettinger
Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/fi

Re: best way of getting a web document

2006-06-25 Thread Anthony Ettinger
sing modules. > > Hi, I use WWW::Mechanize http://search.cpan.org/~petdance/WWW-Mechanize-1.18/lib/WWW/Mechanize.pm to get pages. I do some simple XML validation and manipulation in some cases. I've used HTTP::Request, curl is easy too...watch what you pass to the command line th

Re: CPAN::Shell install into customer dir

2006-06-24 Thread Anthony Ettinger
[EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: newlines on win32, old mac, and unix

2006-06-19 Thread Anthony Ettinger
On 6/19/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Anthony Ettinger wrote: >># order matters >>$raw_text =~ s/\015\012/\n/g; >>$raw_text =~ s/\012/\n/g unless "\n" eq "\012"; >>$raw_text =~ s/\015/\n/g unless "\n" eq

Re: newlines on win32, old mac, and unix

2006-06-19 Thread Anthony Ettinger
ention is not necessarily the one in the runtime platform you cannot write a line-oriented script. If files are too big to slurp then you'd work on chunks, but need to check by hand whether a CRLF has been cut in the middle. I'm reading each line in a while loop, so it should work fine

Re: using (sharing) variables between perl files

2006-06-19 Thread Anthony Ettinger
be, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> read about object oriented perl. or you can always use a config file. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html --

two process writing simultaneously

2006-06-17 Thread Anthony Ettinger
mmand with an strace at the same time. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: About Encryption/ Decription

2006-06-16 Thread Anthony Ettinger
; Rajeev > Try out with the modules available in http://search.cpan.org/~aar/Module-Crypt-0.04/Crypt.pm Module::Crypt -- Prabu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-respon

newlines on win32, old mac, and unix

2006-06-13 Thread Anthony Ettinger
nd LF (unix) in text-mode STDIO. So replacing CR (not followed by LF) with LF should work on mac, and CRLF with LF on dos, and leaving LF untouched on *nix (other)then it shouldn't be a problem...however it appears that \cJ is actually different on win32 than it is on unix. so is \cJ is

Re: subroutine?

2006-06-12 Thread Anthony Ettinger
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: Problem installing captcha

2006-06-10 Thread Anthony Ettinger
ages/m.png cp Captcha/images/r.png blib/lib/Authen/Captcha/images/r.png cp Captcha/images/t.png blib/lib/Authen/Captcha/images/t.png cp Captcha/images/background1.png blib/lib/Authen/Captcha/images/background1.png Manifying blib/man3/Authen::Captcha.3 /usr/bin/make -- OK Running make test PERL_DL_NONLAZ

Re: How to bind values in "IN" value

2006-06-10 Thread Anthony Ettinger
$result->execute(@$userid); You declared an array @userid, not an arrayref, so you don't need to dereference it. $result->execute(@userid); should do the trick. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Yet another OO question

2006-06-08 Thread Anthony Ettinger
On 6/8/06, Lawrence Statton <[EMAIL PROTECTED]> wrote: > > I would prefer it to return the old value: > > > > sub foo { I see...I i've been more or less looking at the current state $curr = $foo->bar(); $old = $curr; $curr = $foo->bar('new value&#

Re: modifying @INC permanently

2006-06-08 Thread Anthony Ettinger
cp myMod.pm to /my/path/ ?? -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: modifying @INC permanently

2006-06-08 Thread Anthony Ettinger
hes the path to @INC accordingly, based on path names. I tried File::Spec, but use lib won't take a variable as it's evaluated before runtime, so that left me with push. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

modifying @INC permanently

2006-06-08 Thread Anthony Ettinger
Is there a way to modify @INC for the perl installation as a whole? All my scripts have logic to push the same directory to @INC. It's rather repetative. I know I can export PERL_LIB environment variable, but I need something for all system users (including win32). -- Anthony Ett

Re: Yet another OO question

2006-06-08 Thread Anthony Ettinger
On 6/8/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: On Thu, 2006-08-06 at 10:56 -0700, Anthony Ettinger wrote: > i prefer the return once method: > > sub foo > { > my $self = shift; > if (@_ == 1) { $self->{'foo'} = shift; } > > retur

Re: Yet another OO question

2006-06-08 Thread Anthony Ettinger
---END PGP SIGNATURE- i prefer the return once method: sub foo { my $self = shift; if (@_ == 1) { $self->{'foo'} = shift; } return $self->{'foo'}; } -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: OO Perl question

2006-06-08 Thread Anthony Ettinger
my ($option) = $_ =~ s/(.*?)#/; #skip inline comments should be m//, not s// On 6/8/06, Anthony Ettinger <[EMAIL PROTECTED]> wrote: On 6/8/06, Graeme McLaren <[EMAIL PROTECTED]> wrote: > Hi Anthony, good idea about overriding the table names. I had a feeling > there wo

Re: OO Perl question

2006-06-08 Thread Anthony Ettinger
On 6/8/06, Graeme McLaren <[EMAIL PROTECTED]> wrote: Hi Anthony, good idea about overriding the table names. I had a feeling there would be a conf file somewhere. As I am outputting the results of the SELECT to an HTML::Template I am already using a Conf file which is another class.

Re: OO Perl question

2006-06-08 Thread Anthony Ettinger
ide with pre-existing tables. I've found this to be the best way to ensure not dropping tables on accident, especially if you load an sql file with "drop table foo if foo exists". I almost did that at work the other day on a table with 1 character diff in the name (i was lucky

Re: regex to match a range of numbers?

2006-06-07 Thread Anthony Ettinger
date =~ m{(Wed)\s(Jun)\s{1,2}([1..31])}; __END__ -- Joshua Colson <[EMAIL PROTECTED]> iNation, LLC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: reading Perl syntax

2006-06-06 Thread Anthony Ettinger
There's a good book "PHP5 Patterns and Object Oriented Programming" which I found very instrumental in my understanding of object-oriented programming, before applying it to Perl. There are of course Perl books on the subject, and the perldocs, but I found PHP's object oriented support to be les

Re: reading Perl syntax

2006-06-06 Thread Anthony Ettinger
just execute it with "perl -wl foo" or add the shebang line: #!/usr/bin/perl -w On 6/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: "Anthony Ettinger" <[EMAIL PROTECTED]> writes: > The syntax {} is for a hashref, it's just an un-named hashref ins

Re: reading Perl syntax

2006-06-06 Thread Anthony Ettinger
ackage Foo; return $self; } sub getFooKey { my $self = shift; return $self->{'fookey'}; } sub setFooKey { my $self = shift; if (@_== 1) { #if there's another param, set that as the value $self->{'fookey'} = shift; } return $self; } 1; -- Anth

Re: What are the problems with my CGI script

2006-06-06 Thread Anthony Ettinger
you want a default value. Setting it as empty is still a value, so you potentially could have empty values in your database. if (defined($name)) would be better, but can be rather cumbersome. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL

Re: Multiple Page Scrape

2006-06-06 Thread Anthony Ettinger
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: searching word in script

2006-06-02 Thread Anthony Ettinger
ot;match found"; } else { print "match not found"; } } close FH; Following is the error readline() on closed filehandle FH at C:\irfan\search.pl line 13. can anybody plz help Regards Irfan Sayed -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html

Re: Escaping a plus sign

2006-05-30 Thread Anthony Ettinger
pe this character so in the future it won't kill the script? Thank you, -- Paul Nowosielski -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Si

Re: accessor problem in OO

2006-05-27 Thread Anthony Ettinger
is > actually an object $self. ) Hope this helps PC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: GnuPG again: problem with if statement evaluation

2006-05-25 Thread Anthony Ettinger
ps...you're checking if it has a value, 256 (a typical error return code) would pass that test. On 5/25/06, Anthony Ettinger <[EMAIL PROTECTED]> wrote: check $? or $! $gp->foo() or die "$!"; my $output = $gp->foo(); print "return code: $?"; see p

Re: GnuPG again: problem with if statement evaluation

2006-05-25 Thread Anthony Ettinger
us: $encrypt_status\n"; What am I doing wrong? Thanks, --J(K) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: What are the most successful applications of Perl? Thanks.

2006-05-23 Thread Anthony Ettinger
...course everybody uses perl here and there for batch processing :) On 5/23/06, Anthony Ettinger <[EMAIL PROTECTED]> wrote: ebay.com started out as a perl, but it's been revamped as java for a few years now. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html

Re: What are the most successful applications of Perl? Thanks.

2006-05-23 Thread Anthony Ettinger
ebay.com started out as a perl, but it's been revamped as java for a few years now. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://

Re: What are the most successful applications of Perl? Thanks.

2006-05-23 Thread Anthony Ettinger
On 5/23/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Japerlh wrote: > What are the most successful applications of Perl? http://www.oreillynet.com/pub/a/oreilly/perl/news/success_stories.html movable type is one that I know of off hand. -- Anthony Ettinger Signature: http://chovy.d

Re: Running perl from perl?

2006-05-23 Thread Anthony Ettinger
eed for shebang line here). require('/path/to/foo.pl'); foo(); # call main::foo sub routine defined inside foo.pl -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: sub never called

2006-05-23 Thread Anthony Ettinger
;] ); $res = $mesg->count; $mesg = $ldap->unbind; return $res; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Sig

Re: Create Directories

2006-05-22 Thread Anthony Ettinger
itional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: regex..gah

2006-05-09 Thread Anthony Ettinger
) = $string =~ m/^(.*?)@/; if (substr($line,0,5) eq "From:") { }, but i want to get past the phase of if ($line =~ m/^From:/i) { do something with "From" line; } -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: using "our" across blocks

2006-05-02 Thread Anthony Ettinger
. On 5/2/06, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: Anthony Ettinger wrote: : #!/usr/bin/perl -w : : use vars qw($start_time $end_time); : use strict; : : BEGIN { : $start_time = time(); : } : : sub log_time { : my $exit_code = shift; : my $elapse

Re: using "our" across blocks

2006-05-02 Thread Anthony Ettinger
On 5/2/06, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: Anthony Ettinger wrote: : #!/usr/bin/perl -w : : use vars qw($foo); #globals; : use strict; : : sub foo { : $foo = 'foo'; : my $baz = 'baz'; : } : : my $baz = 'pre-baz'; : foo(); : :

Re: using "our" across blocks

2006-05-02 Thread Anthony Ettinger
On 5/2/06, Jay Savage <[EMAIL PROTECTED]> wrote: On 5/2/06, Anthony Ettinger <[EMAIL PROTECTED]> wrote: > I want to double-check that it is correct to use "our" to import globals. > [snip] What do you mean by import? Variables aren't imported from BEGIN blocks.

using "our" across blocks

2006-05-02 Thread Anthony Ettinger
perseded by "our" declarations, available in Perl v5.6.0 or later. See "our" in perlfunc. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: executing block on

2006-05-01 Thread Anthony Ettinger
Thanks, I'll look into this...looks good so far though. I can just stick my @t = times; print join("\n", @t), "\n"; at the bottom of the script. On 5/1/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Anthony Ettinger wrote: > > I'm not trying to benchma

Re: executing block on

2006-05-01 Thread Anthony Ettinger
On 5/1/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: On Mon, 2006-01-05 at 16:28 -0700, Anthony Ettinger wrote: > I'm tracking execution time of a bunch of scripts, and want to drop in > "tracker.pl" into each script...the problem I'm faced with is if a >

executing block on

2006-05-01 Thread Anthony Ettinger
s work, but with PRE-STDIN, POST-STDIN functionality? Thanks, -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: What is the function of BEGIN in perl

2006-05-01 Thread Anthony Ettinger
g/> <http://learn.perl.org/first-response> -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html

Perl Hash Question.

2005-06-23 Thread Anthony Roe
Hi there everybody, I have a question and I am pretty stumped for the answer. I have a program that does the following: A = Reads URI from URIHASH. Visits site A. Parses all URIS on site A and for each URI found adds the URI to the URIHASH. A = Reads next URI from URIHASH. Visits site A. And so

Issue reading password from STDIN after STDIN was read from redirect.

2005-03-09 Thread Anthony Tippett
I've have a program that reads input from STDIN like so: example: program < file.txt and then I try to read a password from STDIN that the user types in but it skips right over that section. Do I have to do anything to STDIN before I try to get user input from it? Perhaps close and reopen it?

Using variables to store statements/formulae in perl

2004-09-28 Thread Murphy, Anthony
rint $formula{"Addition"} . "\n"; print $formula{"Subtraction"} . "\n"; print $formula{"Brackets"} . "\n"; -- Code Ends -- Thanks, Anthony Murphy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Perl calling Profile

2004-06-07 Thread Anthony J Segelhorst
/.kshrc Anthony J Segelhorst Enterprise Systems Management Team Phone: 937-495-1876 Email: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service

Re: hour -1 routine

2004-05-28 Thread Anthony J Segelhorst
"Wiggins d Anconia" <[EMAIL PROTECTED]> wrote on 05/28/2004 12:37:56 PM: > > > > I am trying to set up a script that will do the do a current time -1 > > routine. > > > > Examples: > > > > Current Time: > > mmddyy:hhss > > 052804:1030 > > > > Output: > > 052804:0930 > > > > > > Current Tim

hour -1 routine

2004-05-28 Thread Anthony J Segelhorst
. Anthony J Segelhorst Enterprise Systems Management Team Phone: 937-495-1876 Email: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service

HTTP

2004-05-26 Thread Esposito, Anthony
Any help for a script downloading files from a http site? Tony Esposito Oracle Developer, Enterprise Business Intelligence XO Communications Plano, TX 75074 Work Phone: 972-516-5344 Work Cell: 972-670-6144 Email: [EMAIL PROTECTED]

Pause/Hold in Perl

2004-03-30 Thread Anthony J Segelhorst
Is there a way in Perl to have a script wait 30 seconds before it continues processing? Like or a pause or hold? Anthony J Segelhorst Enterprise Systems Management Team Phone: 937-495-1876 Email: [EMAIL PROTECTED] This

Port Status Command in Perl

2004-03-22 Thread Anthony J Segelhorst
Is there a perl call to tell if a port is open or closed built into Perl? I am basically trying to build a perl script to monitor ports on Windows Servers and I am trying to stay away from system commands. Anthony J Segelhorst Enterprise Systems Management Team Phone: 937-495-1876 Email

Merging Hashes

2004-02-26 Thread Akens, Anthony
Hi, I'm new to hashes, and I've been playing around with the following for a while... I'm just not getting it. I have two hashes, one containing data read in from a file, one with "current" data. I'd like to merge the two, adding any new keys and values into the hash, and for any keys that ex

Re: default value for input

2004-02-24 Thread Anthony Vanelverdinghe
It works fine! So it isn't possible to show this on the screen so that the user can see it's already there and just has to complete the url?? Thanks Anthony _ Je horoscoop al gelezen? http://www.msn.be/horoscoop -- To u

Re: default value for input

2004-02-24 Thread Anthony Vanelverdinghe
Re: default value for input Date: Tue, 24 Feb 2004 13:05:09 -0600 On Tue, Feb 24, 2004 at 07:41:46PM +0100, Anthony Vanelverdinghe ([EMAIL PROTECTED]) wrote: > Hi > > is it possible to give a default value to the input you're asking? I tried > the code below but this didn't

default value for input

2004-02-24 Thread Anthony Vanelverdinghe
Hi is it possible to give a default value to the input you're asking? I tried the code below but this didn't work. $URL = "http://";; chomp ($URL = $URL.<>); Thx Anthony _ De winnaars zijn gekend van d

converting array to hash

2004-02-22 Thread Anthony Vanelverdinghe
Hi Could anyone explain why the output of the hash isn't: 1 a 2 b 3 c How can i make that the order remains

quotes in pattern

2004-02-21 Thread Anthony Vanelverdinghe
Hi I want to save the name and the URL of a html hyperlink in an array (@bookmarks). The problem is that the quotes aren't recognized, so it doesn't save only the URL; but also the other attributes of How can i make sure only the URL between the quotes is saved? if (/^\s*(.+)<\/A>\s*$/i){

"tables" in Perl

2004-02-21 Thread Anthony Vanelverdinghe
Hi is Java you can do the following: int[][] table=new int[4][3]; int i=table[2][2]; is there also something like this in Perl?? Thanks!! _ Online shoppen, niets zo makkelijk http://www.msn.be/shopping -- To unsubscribe, e-mail: [E

Re: switch statement

2004-02-19 Thread Anthony Vanelverdinghe
statement Date: Thu, 19 Feb 2004 16:21:22 -0500 --As of Thursday, February 19, 2004 10:14 PM +0100, Anthony Vanelverdinghe is alleged to have said: Could anyone please tell me what's wrong with the following "program"? The compiler gives errors in the switch statement. --As for the

switch statement

2004-02-19 Thread Anthony Vanelverdinghe
Hi Could anyone please tell me what's wrong with the following "program"? The compiler gives errors in the switch statement. Thx!! Anthony %commands=('v',0,'w',1,'t',2,'/pattern/',3,'s',4,'x',5); $end = 0; while (!end

Program close

2004-02-10 Thread Anthony Vanelverdinghe
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! _ De nieuwe Pirelli 2004 kalender al gezien? http://auto.msn.be/pirell

RE: upgrading perl to 5.6 from 5.005_03 question?

2004-02-02 Thread Esposito, Anthony
Instead of upgrading why not just install Perl 5.6 in a separate directory..just a thought! Tony Esposito Oracle Developer, Enterprise Business Intelligence XO Communications Plano, TX  75074 Work Phone: 972-516-5344 Work Cell: 972-670-6144 Email: [EMAIL PROTECTED] -Original Message--

Re: array push

2004-01-26 Thread Anthony J Segelhorst
>For Quality purposes, Anthony J Segelhorst 's mail on Monday 26 January 2004 >17:17 may have been monitored or recorded as: > How come when I push a variable to an array it puts one whitespace before > the variables on all the lines except the first one?  I would except all &

array push

2004-01-26 Thread Anthony J Segelhorst
){ $last = "$tmrname,$gateway_hash{$gateway},$version,$interp,$type\n"; #print "$last"; push(@temparray, $last); } @temparray = sort @temparray; print "@temparray"; Anthony J Segelhorst Enterprise Systems Management Team Phone: 937-49

RE: Use of "System"

2004-01-20 Thread Akens, Anthony
Someone kindly pointed out that perldoc is a handy thing. - Tony -Original Message- From: Akens, Anthony Sent: Tuesday, January 20, 2004 4:31 PM To: [EMAIL PROTECTED] Subject: RE: Use of "System" Sorry all, I seem to be having problems with our company's chosen mail

RE: Use of "System"

2004-01-20 Thread Akens, Anthony
Sorry all, I seem to be having problems with our company's chosen mail client (Outlook). Trying this again, hopefuly it will preserve my EOL characters this time. - Tony I'm attempting to use the following code on an AIX machine to monitor the error log (using the errpt command). I'm sure

Use of "System"

2004-01-20 Thread Akens, Anthony
I'm attempting to use the following code on an AIX machine to monitor the error log (using the errpt command). I'm sure parts of it are very ugly, but it's (mostly) working. The part that isn't is the foreach loop. What it's supposed to do is as follows: #read in the "summary" error report, whi

Re: counters for lines

2004-01-20 Thread Anthony J Segelhorst
James Edward Gray II <[EMAIL PROTECTED]> 01/20/2004 02:11 PM To: "Anthony J Segelhorst" <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED] Subject:Re: counters for lines On Jan 20, 2004, at 12:39 PM, Anthony J Segelhorst wrote: > I

counters for lines

2004-01-20 Thread Anthony J Segelhorst
counter to count the lines until a different line shows up. I already have the list sorted, so I just need to compare the new string to old string and if they are the same increase the counter, and if they are different start a new counter. Anthony J Segelhorst Enterprise Systems Management Team

RE: PERL debuggers

2004-01-07 Thread Esposito, Anthony
There is Open Perl IDE. Check out http://open-perl-ide.sourceforge.net. Unfortunately, it is for Windows only. HTH :-) Tony Esposito Oracle Developer, Enterprise Business Intelligence XO Communications Plano, TX  75074 Work Phone: 972-516-5344 Work Cell: 972-670-6144 Email: [EMAIL PROTECTED]

RE: 'print' output on one line

2004-01-06 Thread Esposito, Anthony
, January 06, 2004 5:07 PM To: Esposito, Anthony Cc: Jenda Krynicky; [EMAIL PROTECTED] Subject: Re: 'print' output on one line "Esposito, Anthony" wrote: > I tried that already but it just gives me the final count at the end. I would like > the output to change - the ro

RE: case and functions

2004-01-06 Thread Esposito, Anthony
There is no 'case' statement in Perl but it is easy to mimic such a construct. Tony Esposito Oracle Developer, Enterprise Business Intelligence XO Communications Plano, TX  75074 Work Phone: 972-516-5344 Work Cell: 972-670-6144 Email: [EMAIL PROTECTED] -Original Message- From: [EMAIL PRO

RE: 'print' output on one line (thread closed)

2004-01-06 Thread Esposito, Anthony
unications Plano, TX  75074 Work Phone: 972-516-5344 Work Cell: 972-670-6144 Email: [EMAIL PROTECTED] -Original Message----- From: Esposito, Anthony Sent: Tuesday, January 06, 2004 3:09 PM To: Jenda Krynicky; [EMAIL PROTECTED] Subject: RE: 'print' output on one line I tried that al

RE: 'print' output on one line

2004-01-06 Thread Esposito, Anthony
"Esposito, Anthony" <[EMAIL PROTECTED]> > I have a perl program ( with DBI ) which prints out a line to STDOUT > after every 100 database commits. I would like the 'print' to just > refresh the current line every time but - not knowing how to get > around it -

RE: 'print' output on one line

2004-01-06 Thread Esposito, Anthony
----- From: Esposito, Anthony Sent: Tuesday, January 06, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: 'print' output on one line I have a perl program ( with DBI ) which prints out a line to STDOUT after every 100 database commits. I would like the 'print' to just refresh the curre

'print' output on one line

2004-01-06 Thread Esposito, Anthony
I have a perl program ( with DBI ) which prints out a line to STDOUT after every 100 database commits. I would like the 'print' to just refresh the current line every time but - not knowing how to get around it - the program instead prints a new line every 100 commits like so: INFO 3: start de

RE: Microsoft Services for UNIX/LINUX

2004-01-06 Thread Akens, Anthony
Glad you've found a solution. Just thought I'd drop a note about some of the things I've had success with. We have a few scripts (originally written as shell scripts in csh) that I've converted to perl. They reside on a box running AIX 5.1. On a win2k box I've installed the Windows services fo

Re: Wrapping Unix Command into Perl

2003-12-12 Thread Anthony J Segelhorst
Anthony J Segelhorst <[EMAIL PROTECTED]> wrote: > I am trying to wrap the following Unix command into perl and having a few > issues: > > find /var/spool/Tivoli/backups -name "DB_*" -mtime +10 -print -exec ls {} \; > > > I have tried (and nothing to se

Wrapping Unix Command into Perl

2003-12-12 Thread Anthony J Segelhorst
+10 -print -exec ls {} \;`; system `find /var/spool/Tivoli/backups -name "DB_*" -mtime +10 -print -exec ls {} \;` !system `find /var/spool/Tivoli/backups -name "DB_*" -mtime +10 -print -exec ls {} \;`; Anthony J Segelhorst Enterprise Systems Management Team Pho

RE: Timing several processes

2003-12-04 Thread Akens, Anthony
e end it will meet the goal that management put forth, which is what keeps me paid :) -Tony -Original Message- From: drieux [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 7:24 PM To: Perl Perl Subject: Re: Timing several processes On Dec 3, 2003, at 10:49 AM, Akens, Ant

  1   2   3   >