Length of a string

2002-04-01 Thread Ron
For the life of me, I cannot remember how to find the certain numbers in a string. I remember how to find the length of an array but I cannot find how to find the length of a string in a variable. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Password Encryption for MySQL field

2002-04-08 Thread Ron
e_name ('$username', ENCODE(str, password))"); $cursor_insert->execute; # Connect to the database through DBI $dbh = DBI->connect("DBI:mysql:HOST", "DB", 'DB_PASSWORD'); $cursor_select = $dbh->prepare("select username, DECODE(str, passw

Re: Password Encryption for MySQL field

2002-04-09 Thread Ron
Ooops! Correction: Incorrect -- connect("DBI:mysql:HOST", "DB", 'DB_PASSWORD'); Should be -- connect( "dbi:mysql:dbname", "username", 'DBpassword'); Ron === "Ron" <[EMAIL PROTECTED]>

Re: Validating form date

2002-04-10 Thread Ron
Hello Daniel Here is one approach I use to validate an email address. if ($email_new !~ /[\w\-]+\@[\w\-]+\.[\w\-]+/) { # Not a valid email address - Do this }else # Valid email address - Do this } Ron == "Daniel Falkenberg" <[EMAIL PROTECT

RegEx question

2002-04-23 Thread Ron
I have been using the below subroutine for Parsing my data from forms. The question I have; can someone explain this line to me, $value =~ tr/+/ /; The tr has me a bit confused. Thank you for any input, Ron sub Parse_Form { if ($ENV

Re: RegEx question

2002-04-23 Thread Ron
Thank you. I feel like a dummy. Duh, tr = translate, I learned that in my beginning PERL classes. Thank you folks for jogging my feeble mind. Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: split array

2002-05-01 Thread Ron
quot;; > > right now its prints out for example: > > 1 greg [EMAIL PROTECTED] 1234 2 john [EMAIL PROTECTED] 4r434 and so on > > i want it so it prints out.. > > 1 greg [EMAIL PROTECTED] 1234 > 2 john [EMAIL PROTECTED] 4r434 > > i know this is a simple ques

Re: split array

2002-05-01 Thread Ron
Oops. As you stated, @row is suppose to be @data. I did assume that the display was in HTML. I guess it's an occupational hazard doing web development. Ron "Chas Owens" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 2

Creating an interactive calendar

2002-05-06 Thread Ron
::Calendar & Date::Calc. I want to know if anyone knows of a good reference that can advise me and help me along? I use cspan.org all the time, other than that reference. Thank you in advance. Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl in a Nutshell

2002-05-15 Thread Ron
for System Administration, and Advanced Perl Programming, along with the new books. As a bonus, you get the paperback version of Perl in a Nutshell. The price at Amazon is about $56.00. Ron "Denham Eva" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

Bad File Descriptor!!

2003-03-03 Thread Ron
tion?? Bad File Descriptor sounds like a very generic error. Thanks in advance Ron. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Sorting hash by element

2001-06-16 Thread Ron Anderson
Hi! Using the following hash as an example: $shash{"student1"} = join("\t", ("bob", "tyson", "room5")); $shash{"student2"} = join("\t", ("ron", "anderson", "room4")); $shash{"student3"

Re: Getting Started

2001-06-23 Thread Ron Smith
dal L. Schwartz & Tom Christiansen Published by: O'REILLY Also, on a Windows system, you can use 'notepad' or 'wordpad' to create your code, and the DOS shell to execute it. Ron >From: "Charles Aye-Darko" To: Subject: Getting Started Date: Tue, 19 Jun >200

problem writing to a file

2001-07-21 Thread Ron Woodall
y to be sure there's nothing volitile in there. Other files with the same content etc. are written properly under the same circumstances. Any suggestions? Thanks for all your help. Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Highlihting a string

2001-07-21 Thread Ron Smith
If it's not "CGI.pm you're looking for, try "Term::ANSIColor" module. Ron >From: viswanathan sundararajan <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Highlihting a string >Date: Thu, 19 Jul 2001 23:14:03 -0700 (PDT) > >Hi, > I

Request for code review...Please

2001-07-24 Thread Ron Smith
cess to numbering. I get some odd behavior here (no doubt due to something I'm doing wrong). As soon as you enter "add" at line 44, the script jumps to line 70, and finishes the script instead of pushing the *new* user-added directory name to

Re: Which perl book is the best for a newbie?

2001-07-25 Thread Ron Smith
er book that's full of goodies is: "Mastering Regular Expressions by: Jeffrey E. F. Friedl". Good Luck, Ron >From: "Super Newbie" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Which perl book is the best for a newbie? >Date: Wed, 25 Jul 2001 16:41:3

array contents to a file

2001-07-26 Thread Ron Smith
Could someone provide a snippet of code that reads the contents of an array to a text file. Thanks, Ron _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: [EMAIL PROTECTED

A Munging Project

2001-07-28 Thread Ron Smith
same info in the following format: 1 file.%04d.rgb1-5 2 file_2.%04d.rgb 1-3 Are there any modules I should be looking at that could make this job easier? Ron _ Get your FREE download of MSN Explorer at http://explorer.ms

automatically naming scalars

2001-07-31 Thread Ron Woodall
Hi: I'm trying to take a word from a file and naming a scalar with that word. i.e. I find the word "target" in a file. I then need to create $target = "xxx" and various other variables related to target. Any suggestions? Thanks for the help.

Re: automatically naming scalars

2001-07-31 Thread Ron Woodall
Hi Brett: Thanks for the reply. At 12:08 PM 7/31/01 -0400, you wrote: >On Tue, 31 Jul 2001, Ron Woodall wrote: > > > I'm trying to take a word from a file and naming a scalar with > > that word. i.e. I find the word "target" in a file. I then

Re: How to retrieve filesystem size ?

2001-08-03 Thread Ron Smith
Is this for PC or UNIX?? The following basic works for UNIX: print (`df -k`); # use backquotes Chapter 14 (Process Management) in "Learning Perl". Ron >From: Vincent Bouttier-Deslandes <[EMAIL PROTECTED]> >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >

Re: If Statement won't work

2001-08-04 Thread Ron Smith
quot;print" statement ;-). Oh Yeah! ...make sure your code is executable (chmod +x ). Ron >From: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: If Statement won't work >Date: Thu, 2 Aug 2001 11:22:25 -0500 > >Can anyone tell me why my if statement refuses to work?

heredoc

2001-08-08 Thread Ron Woodall
Hi All: How do I take a heredoc section and write it to an array? Any suggestions? Ron Woodall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: heredoc

2001-08-08 Thread Ron Woodall
Hi Troy: Thanks for the reply. At 01:11 PM 8/8/01 -0400, you wrote: >On Wednesday 08 August 2001 13:40, Ron Woodall wrote: > > How do I take a heredoc section and write it to an array? Any > suggestions? > >Hmmm, at the risk of not being helpful, can you

Re: automatically naming scalars

2001-08-14 Thread Ron Woodall
Hi Jos: Thanks for the reply. At 05:44 PM 8/14/01 +0100, [EMAIL PROTECTED] wrote: >I must agree with Jos on this ... I read the email and I saw that what Ron was >asking for was soft reference ... like I mentioned before a lot of the >situations (like I mentioned my e

Re: how do I know what modules are installed

2001-08-16 Thread Ron Smith
use: 'perl -MMODULE_NAME -e 1' for an individual module, like: perl -MFile::Copy -e 1, or perl -MCGI -e 1. For all the modules installed, you might want to check out the following URL: http:[EMAIL PROTECTED]/msg04057.html Ron >From: "Joe Bellifont" <[EMAIL PROTECT

Hash of structures not working in latest Perl build on Windows?

2001-08-21 Thread Ron Rohrssen
Loop through the hash and work on the data in the hash @index = sort (keys (%AccumHash)); foreach $curr_key (@index) { print "The data date stored in the hash is ".$AccumHash{$curr_key}{DataDate}." for BDR File ".$BDR_FileName."\n"; } Thanks Ron Rohrssen MCI

RE: Hash of structures not working in latest Perl build on Window s?

2001-08-21 Thread Ron Rohrssen
ly retrieve the keys. I just can't get data stored in the structure. Ron -Original Message- From: Gibbs Tanton - tgibbs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 5:03 PM To: 'Ron Rohrssen '; 'Perl Beginners ' Subject: RE: Hash of structures not

RE: Hash of structures not working in latest Perl build on Window s?

2001-08-22 Thread Ron Rohrssen
r areas of the code as additional references to the hash cause unblessed references. Another interesting effect is that I still have to update values in the structure the "old" way. So, this only seems to effect reading the data from the structure. Ron -Original Message- From: G

RE: Hash of structures not working in latest Perl build on Window s?

2001-08-22 Thread Ron Rohrssen
at the function is called. Ron This set of code works on Perl 5.005_3 and demonstrates a hash of structures where the values can be read and set. Also the exists function does work. -- use strict; use Class::Struct; #To enable structures use Date::Manip;

Re: split a file

2001-08-22 Thread Ron Smith
t;Couldn't create \"sequence_tree.txt\" $!\n"; while () { print DIALIGN if (/DIALIGN/ .. /FASTA/); print FASTA if (/FASTA/ .. /Sequence tree/); print TREE if (/Sequence tree/ .. eof); } close (DIALIGN); close (FASTA); close (TREE); -snip

Validate a date

2001-08-29 Thread Ron Rohrssen
sirable effect of dumping this message when empty strings are evaluated: "ERROR: Invalid arguments to ParseDateDelta." Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Validate a date

2001-08-29 Thread Ron Rohrssen
Thanks Bob. -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 8:00 AM To: '[EMAIL PROTECTED]' Subject: RE: Validate a date > -Original Message----- > From: Ron Rohrssen [mailto:[EMAIL PROTECTED]] > Sent: Wednesd

RE: Validate a date

2001-08-30 Thread Ron Rohrssen
Thanks Tanton. I'd never seen that before. Ron -Original Message- From: Gibbs Tanton - tgibbs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 8:06 AM To: 'Ron Rohrssen '; 'Perl Beginners ' Subject: RE: Validate a date There are probably modules

RE: checking file date/time

2001-08-31 Thread Ron Rohrssen
Try looking at File::stat This can be used to return information on the file creation, last modified date/time, etc. Ron -Original Message- From: Rory O'Connor [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 7:17 PM To: [EMAIL PROTECTED] Subject: checking file date

Re: Capture an email address from a text file

2001-09-04 Thread Ron Smith
if /@/; } close FILE; -snip-- You can run the above code like a UNIX command-line program like: ./my_program some_file_name This is just a general suggestion. You should embellish to suit your needs. Ron >From: "Arthur Perley" <[EMAIL PROTECTED]> >T

Re: Filehandle error using Strict

2001-09-05 Thread Ron Smith
ot;); while () { print; } close FILE; ---snip--- Ron >From: Deborah Strickland <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Filehandle error using Strict >Date: Tue, 04 Sep 2001 10:17:04 -0700 > >Hi all, I've had this

end of line problems

2001-09-07 Thread Ron Woodall
tscape, everything looks fine but MSIE doesn't acknowledge the end of line character. What am I doing wrong? My 930 page goat choker of a Perl 5 manual must have it somewhere but it is not logically listed in the index. help Ron Woodall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Subroutine example

2001-09-10 Thread Ron Smith
er 1! Hello, sailor number 2! Hello, sailor number 3! Hello, sailor number 4! ...like it's supposed to. Am I missing some key information here?? Or, is the book just a bit unclear?? Ron _ Get your FREE download of MSN Explorer

Re: Subroutine example

2001-09-10 Thread Ron Smith
Thanks, everybody!! I've declared the $n variable outside the subroutine, as suggested, and everything works fine :-). Ron >From: "Ron Smith" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Subroutine example >Date: Mon, 10 Sep 2001 14:23:28 -0700 >

line end problems - help #2

2001-09-11 Thread Ron Woodall
"0D 0A". Microsoft Internet Explorer displays the page properly. Again, the line ends are not honoured when I view the source. I'm open to any suggestions as to why and what I can do about it. Thanks for all your help. Ron Woodall ---

RE: Perl and files bigger then 2GB

2001-09-12 Thread Ron Rohrssen
I regularly work with files ASCII files larger than 2g without any problem. What exactly is the problem that you are experiencing? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 12:42 PM To: [EMAIL PROTECTED] Subject: Perl and file

Re: line end problems - help #2

2001-09-12 Thread Ron Woodall
save in unix format. No resolution. I haven't tried FTP yet but that might be worth it when I get to the production end of the run. Any other solutions? I'm using NoteTab Light 4.85 (Freeware version) by Eric G.V. Fookes. Thanks but no cigar

Re: line end problems - help #2

2001-09-13 Thread Ron Woodall
27;s (emacs, nvi, ... ) from linux. this is a long song, but i >can sing, if anyone is interested :) I was running Xfree86 but blew it up while trying to implement multi-head operations. No more time to fix it. I've got to live with the current situation for a while yet.

Re: line end problems - help #2 - SUMMARY

2001-09-14 Thread Ron Woodall
e template. Well, that was one experiment. A few million more to go. Thanks to all who responded. Ron Woodall ------- Ron Woodall [EMAIL PROTECTED] The Compendium of HTML Elements "your essential web publishing resource" - available at/di

RE: Directory scan

2001-09-17 Thread Ron Rohrssen
Here's a little code snippet that could be modified to suit your needs. use Win32::OLE qw(in with); use File::Basename; my ($FileName, $folder, $ext); opendir(NT, $folder) || die "Didn't find folder"; foreach $FileName (sort readdir(NT))# list context, sorted {

RE: Date comparing and difference?

2001-09-26 Thread Ron Rohrssen
Date-Manip is a fantastic date manipulation module. It's quite a bit slower than date-calc but, it offers a lot more flexibility. Ron -Original Message- From: John Grimes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 11:55 AM To: [EMAIL PROTECTED] Subject:

Re: DELETE BLANK LINE

2001-10-04 Thread Ron Smith
How about: next unless /\S/; Ron >From: Eric Wang <[EMAIL PROTECTED]> >To: Pedro A Reche Gallardo <[EMAIL PROTECTED]> >CC: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >Subject: Re: DELETE BLANK LINE >Date: Thu, 4 Oct 2001 11:05:59 -0700 (PDT) > >Y

UFO (Unidentified Formatting Observation) on the web....

2002-02-01 Thread Ron Goral
I have a very beginner's question. I've just been looking at the code for a library file and noticed some, to me, very peculiar things. First, there is text that is not commented, it is just typed in place. Why does this not interfere with the script? Second, there are expressions like "=pod"

Open a brand new browser window with Perl

2002-02-07 Thread Ron Goral
Is it possible to open a brand new browser window and set it's size, location and characteristics (no menu bar, no status bar, etc.) using Perl or is it necessary to always use the same window that has called the script? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

RE: Open a brand new browser window with Perl

2002-02-07 Thread Ron Goral
s anywhere I wish. It's not a new window, but it sure walks and talks like one. The same is true of all the window properties. Sorry 'bout the bad post guys. Ron >Is it possible to open a brand new browser window and set it's size, >location and characteristics (no menu

Learning to 'fork()' the right way

2009-03-26 Thread Ron Smith
ript.pl is running.\n"; } else { print "testScript.pl is not running. I'll start it.\n"; my $pid = fork(); if (!defined($pid)) { die "Could not fork: $!\n"; } elsif ($pid == 0) { exec("/home/scripts/utils/develop/ron/testScript.pl&q

Re: Getting USER env variable in Windows -- How to?

2009-12-09 Thread Ron Bergin
On Dec 9, 7:01 am, tony1234567...@yahoo.co.uk (Tony Esposito) wrote: > I need to get the current USER env var in a Windows Perl program.  Does > anyone know how this is done?  I have done it on UNIX/Linux. > > Thx. perl -e "print $ENV{'USERNAME'}" -- To unsubscribe, e-mail: beginners-unsubscr..

Re: Strawberry Perl capabilities?

2010-03-06 Thread Ron Bergin
On Mar 5, 4:39 pm, dpchr...@holgerdanske.com (David Christensen) wrote: > Shlomi Fish wrote: > > Actually, Strawberry Perl is preferable over AS Perl: > >http://strawberryperl.com/ Shlomi, If using AS, then simply install MinGW which gives you the missing compiler and proper cpan setup. After th

Re: Strawberry Perl capabilities?

2010-03-06 Thread Ron Bergin
On Mar 6, 10:38 am, r...@i.frys.com (Ron Bergin) wrote: > If using AS, then simply install MinGW which gives you the missing > compiler and proper cpan setup.  After that, AFAIK you'll have the > same functionality as Strawberry. > > http:

Undefined Subroutine

2010-04-08 Thread Ron Wingfield
#!/usr/bin/perl -wT # #sub_test.pl . . .just a proof-of-concept # to get subroutines to be recognized. use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); my $q = new CGI; #- #my $con = $q->param('c

Re: Nested if and elsif and else

2010-04-15 Thread Ron Bergin
On Apr 15, 9:21 am, rea...@newsguy.com (Harry Putnam) wrote: > r...@i.frys.com writes: > > Here's an example I gave in a similar question in another > > forum. > > Thanks... > > I'm sorry to ask more but if someone asked to be shown an > if/elsif/else construct being replaced by a dispatch table, I

Re: Data migration

2010-07-27 Thread Ron Bergin
On Jul 26, 5:58 pm, ca...@cajuninc.com ("M.Lewis") wrote: > I'm migrating an old RedHat server to a new Debian server. In migrating > the data there's a problem in that on the RH server the UID starts at > 500, on the Debian server the UID starts at 1000. Resulting in something > like this: > > Old

Opposite benchmark results between Linux and Windows

2010-08-10 Thread Ron Bergin
: C:\TEMP>timestamp.pl Rate Matt Ron Matt 162840/s -- -37% Ron 257003/s 58% -- [r...@099vicidial101 ~]# ./timestamp.pl Rate Ron Matt Ron 110132/s -- -29% Matt 155763/s 41% -- The code: #!/usr/bin/perl use strict; use warnings; use POSIX qw(strftime);

Re: getting process id under NT

2008-07-29 Thread Ron Bergin
On Jul 29, 9:12 am, [EMAIL PROTECTED] (Epanda) wrote: > Hi HappyTown > > I have seen your web link but I don't think it can show me the PID if > I give the name of an existing and running Win NT application. > > On 28 juil, 05:24, [EMAIL PROTECTED] (Happytown) wrote: > > > On Jul 26, 3:14 am, [EMAI

Re: getting process id under NT

2008-08-03 Thread Ron Bergin
Process::Info ();'. Please do not do that. > eod > > When I set the environment variables I have Windows_NT has OS. > So it should work no ? > > Happytown a écrit : > > > On Jul 30, 11:09 am, [EMAIL PROTECTED] (Ron Bergin) wrote: > > > On Jul 29, 9:12 am,

Re: search and replace command with output

2008-08-19 Thread Ron Bergin
On Aug 13, 1:44 pm, [EMAIL PROTECTED] wrote: > Hi, > > I am trying to search & replace a string in a file using the below > perl command on unix. > > perl -pi -e 's/OLD/NEW/g' repltest.txt > > But I want the above command to display what lines were replaced. Is > it possible using some switch opti

Re: hash of arrays

2008-08-19 Thread Ron Bergin
On Aug 18, 1:03 pm, [EMAIL PROTECTED] (Anjan Purkayastha) wrote: > hi, > i'm struggling with a hash of arrays problem. > suppose i create the following HOA: > $HOA{$key}= [qw(a,b,c,d)]; I doubt that the results of that assignment is what you want/expect. #!/usr/bin/perl #use strict; use warnings

Re: Understanding Perl script functionality

2008-09-21 Thread Ron Bergin
On Sep 19, 10:07 pm, [EMAIL PROTECTED] (Stephen Reese) wrote: > I am working on modifying a script that previously parsed Cisco ACL's > and changing it to parse IPS information. > > Here is an example of the two log formats. > > Sep 19 15:44:29 172.16.2.1 59800: 3725router: Sep 19 19:44:39: %SEC-6-

Re: Trying to modify Perl script

2008-09-23 Thread Ron Bergin
On Sep 22, 10:16 am, [EMAIL PROTECTED] (Stephen Reese) wrote: > John, > > I made many of the changes but what is the addition of the 'next' statement > for? I tried to add the additional code but the script dies mentioning that > it is not terminated correctly. If I comment out the next statement t

Re: which module is suitable for logging into cisco devices

2008-11-25 Thread Ron Bergin
On Nov 23, 1:17 pm, [EMAIL PROTECTED] (Monnappa Appaiah) wrote: > i forgot to mention that, i'l be running the script from the windows machine > ..so pls let me know the module which can login to cisco devices > using ssh, execute certain commands and give me the output. > > Thanks, > Monna

Re: Neater way to declare variables

2009-01-08 Thread Ron Bergin
On Jan 8, 3:56 am, andrew.tayl...@hmrcaspire.com (Andrew Taylor) wrote: > Hello > > I have a script that is (at one point) reading through a file.  The file > is processed line by line and each line split into an array like so: > > while (<$TESTFILE>) > > { > >   my $cur_line=$_; > >   chomp ($cur_

Re: How do I print something out in color on windows cmd?

2009-02-03 Thread Ron Bergin
On Feb 1, 11:43 pm, psars...@ptc.com (Paryushan Sarsamkar) wrote: > I wanted to print some text on windows cmd in different colors, below is the > code that I am using which works fine on unix but not on windows L > > #!/usr/bin/perl > > use strict; > > use warnings; > > use Term::ANSIColor; > > p

Re: Slow connexion with Net::SSH::Perl

2009-02-04 Thread Ron Bergin
On Feb 3, 12:38 pm, jul.col...@gmail.com (Julien Collas) wrote: > Hi everyone, > > I made a script using Net::SSH::Perl and I'm faced to some slow > connexion times. > I use rsa key to connect and it seems to be very slow, but not all the time. > Sometimes it's very quick ( 1sec ), sometimes not (f

Re: CPAN install module problem

2009-03-02 Thread Ron Bergin
On Feb 27, 9:03 pm, howac...@gmail.com (Howa) wrote: > Hi, > > Why sometimes I can use a command to install Perl module, e.g. > > perl -MCPAN -e "install Digest::MD5" > > But sometimes can't? > > e.g. > > perl -MCPAN -e "install Archive::Zip" > > >> Can't locate object method "install" via package

I'd like to monitor a running script.

2009-03-08 Thread Ron Smith
if ($process) { sleep 30} else { exec (./) or print STDERR "couldn't exec : $!"; } } Ron Smith geeksatla...@yahoo.com (213)300-9448 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: connecting to multiple hosts using Net::SSH2

2009-03-09 Thread Ron Bergin
On Mar 4, 4:46 am, que...@gmail.com (Jerald Sheets) wrote: > > I really think you're doing yourself a disservice by just throwing   > your program commands on lines, not indenting according to best   > practices.  It makes your code unreadable, and can make it very hard   > to debug the more involv

Re: connecting to multiple hosts using Net::SSH2

2009-03-10 Thread Ron Bergin
On Mar 9, 3:37 am, que...@gmail.com (Jerald Sheets) wrote: > On Mar 8, 2009, at 1:29 PM, Ron Bergin wrote: > > > > >> #!/usr/bin/perl -w > > > It's better to use the warnings pragma, instead of the -w switch > > Another note on this... I jus

I'm sure this is a common question, but I can't find the solution.

2009-03-14 Thread Ron Smith
returns: Archive::TarArchive::ZipArray::CompareAutoLoaderCPANCPAN::ChecksumsCPAN::DistnameInfo ...etc. I need: Archive::Tar Archive::Zip Array::CompareAutoLoaderCPAN CPAN::Checksums CPAN::DistnameInfo ...etc. I tried "\n", '\n' and a 'foreach' loop, but nothing I

Re: I'm sure this is a common question, but I can't find the solution.

2009-03-14 Thread Ron Smith
> Ron Smith wrote: > > Hello all, > > Hello, > > > How do you print elements of an array, each on its own > line, in a Windows' console? > > > > I'm doing the following: > > > > E:\My Documents>perl -e "use > ExtUtils::I

Re: I'm sure this is a common question, but I can't find the solution.

2009-03-14 Thread Ron Smith
> From: Beau E. Cox > Subject: Re: I'm sure this is a common question, but I can't find the > solution. > To: geeksatla...@yahoo.com > Date: Saturday, March 14, 2009, 10:51 PM > Ron, > > On Sat, Mar 14, 2009 at 7:28 PM, Ron Smith > wrote: > > >

I'm trying to install 'Net::SSH::Perl' on a Windows Box.

2009-03-15 Thread Ron Smith
" at C:/strawberry/perl/site/lib/PPM.pm line 16 87." The package did not install so I googled this response but didn't come up with any clear-cut direction. ...any suggestions? I also ran accross the following while searching CPAN: Net::SSH::W32Perl MSWin32 compatibility

Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box.

2009-03-16 Thread Ron Smith
--- On Sun, 3/15/09, Chas. Owens wrote: > From: Chas. Owens > Subject: Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box. > To: geeksatla...@yahoo.com > Cc: "Perl" > Date: Sunday, March 15, 2009, 5:46 AM > On Sun, Mar 15, 2009 at 04:56,

Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box.

2009-03-16 Thread Ron Smith
--- On Mon, 3/16/09, Chas. Owens wrote: > From: Chas. Owens > Subject: Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box. > To: geeksatla...@yahoo.com > Cc: "Perl" > Date: Monday, March 16, 2009, 6:51 AM > On Mon, Mar 16, 2009 at 03:51, Ron

Locatiing Self-Installed Modules

2004-03-22 Thread Ron Goral
t;use" call which takes the form: /home/rongoral/uponthemountain-www/cgi-bin/DsgnGrp/Utilities/../Base Modifying the calls to DGObjectManager to "DsgnGrp/Base/DGObjectManager" or "Base/DGObjectManager" does not alleviate the issue. I am getting hopelessly confused here.

RE: Locatiing Self-Installed Modules

2004-03-23 Thread Ron Goral
something like FindBin. Is there an alternative to this? Thanks again - Ron Goral > -Original Message- > From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] > Sent: Monday, March 22, 2004 7:10 PM > To: Ron Goral > Cc: Perl Beginners > Subject: Re: Locatiing Self-Inst

RE: Locatiing Self-Installed Modules

2004-03-23 Thread Ron Goral
Sorry, not sure what "bottom post" means. > -Original Message- > From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 23, 2004 9:05 AM > To: Ron Goral; Perl Beginners > Subject: RE: Locatiing Self-Installed Modules > > > Please bottom

RE: Locatiing Self-Installed Modules

2004-03-24 Thread Ron Goral
> -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 23, 2004 10:03 AM > To: 'Ron Goral'; Perl Beginners > Subject: RE: Locatiing Self-Installed Modules > > > Ron Goral wrote: > > Sorry, not sure what "

Parsing the hyperlink?

2004-03-29 Thread Ron B
I'm running my own version of bulletinboard and I have a little problem with hyperlinks. I'd like to make them really work. So if posted message includes http://blaablaablaa it would be a hyeprlink when reader opens the message. Messages are stored in .html files so it's quite easy to add http:

Re: Parsing the hyperlink?

2004-03-30 Thread Ron B
Thanks. I think I'll use regex this time, 'cause it fits the purpose good enough. But it's really nice thing to know the module for the future versions of my script. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl parsing script

2004-04-16 Thread Ron McKeever
le } But I get errors... Is there an easier way do to this? These log files get to around 500MB a day so the fastest way is hoped. Would a while <> be better?? Any help is great.. Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Help -Perl parsing script

2004-04-17 Thread Ron McKeever
@line = split (/\t/, $_); print if($line[5] != 80 || $line[5] != 53 || $line[5] != 25); } close(FILE);# Close the file But I get errors or prints ARRAY... Is there an easier way do to this? These log files get to around 500MB a day so the fastest way is hoped. Would a whi

Re: Perl vs PHP

2004-04-22 Thread Ron B
Why would one prefer Pepsi over Coke, or vice versa? :) That's the answer to your question. [EMAIL PROTECTED] wrote: Why would one prefer PHP over PERL, or vice, versa? I'm guessing PERL has more functionaltiy and is more robust. What are the technical arguments for one over the other? JP -

procfarm equivalent

2004-06-09 Thread Ron Willmert
Is there a Unix equivalent Win32-ProcFarm? I really like having the module decide how many process' to create and how it doles out the jobs and getting the return values from the process' so easily. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <

A possibly stupid 'Perl' question?

2004-06-25 Thread Ron Smith
stalled at all. Is there a way to use Perl on-line from such a machine? Is Perl small enough to be installed on a floppy disk that can be moved from machine to machine? Is it possible to use 'Perl' without having to install it on a particular machine? TIA Ron Smith

Trying to locate module in parallel directory

2004-07-07 Thread Ron Goral
d_path = $File::Find::dir;} } use FindBin qw($Bin); $Bin .= $mod_path; use lib "$Bin"; use DGStanLib; Ron Goral -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Trying to locate module in parallel directory

2004-07-07 Thread Ron Goral
> Ron Goral wrote: > > Greetings - > > > > I am having trouble locating and using modules that are not in the > > current directory of a cgi script. For this test, I know the > > directory structure looks like this: > > > > cgi-bin/test/test.c

Write to file with shared server certificate

2004-07-08 Thread Ron Goral
ctory, but using the shared cert. requires a path like so: https://secure.hostname.com/mydomain/cgi-bin/logs/logfile.log rather than: https://www.mydomain.com/cgi-bin/logs/logfile.log Is there any way to overcome this short of owning the server or my own certificate? Thank you in advance - Ron

RE: Write to file with shared server certificate

2004-07-08 Thread Ron Goral
> -Original Message- > From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 9:19 AM > To: [EMAIL PROTECTED] > Subject: Re: Write to file with shared server certificate > > > Ron Goral wrote: > > I need to write to a log file to re

RE: Write to file with shared server certificate

2004-07-08 Thread Ron Goral
> -Original Message- > From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 3:25 PM > To: [EMAIL PROTECTED] > Subject: Re: Write to file with shared server certificate > > > Ron Goral wrote: > > chmod 0666 is the right thing.

RE: Write to file with shared server certificate

2004-07-09 Thread Ron Goral
> -Original Message- > From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 8:58 PM > To: [EMAIL PROTECTED] > Subject: Re: Write to file with shared server certificate > > > Ron Goral wrote: > > If I try to create the file usi

Need some help using lib to add custom directories to @INC

2004-09-16 Thread Ron Goral
re printed to screen, they show values identical to the path used in the third example and that one derived in the fourth example. So, why does $Bin get added to @INC before the program tries to load Some_Module_In_lib_Dir, and $file_path does not? Up On The Mountain Design Group Custom sol

RE: Need some help using lib to add custom directories to @INC

2004-09-16 Thread Ron Goral
> -Original Message- > From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 16, 2004 9:03 AM > To: Ron Goral; Perl Beginners; [EMAIL PROTECTED] > Subject: Re: Need some help using lib to add custom directories to @INC > > > Please only po

Variable scope in wanted function

2004-10-10 Thread Ron Goral
file find(\&ProcessFile, $file_path); #- The Subroutine To Process Files And Directories sub ProcessFile {if ($_ eq $file_name){push (@a_files, $File::Find::name);}} # Return the paths found return @a_files; } # end FindPath Peace - Ron Goral -- To unsub

  1   2   3   4   >