Re: Inatalled modules

2003-07-19 Thread Beau E. Cox
- Original Message - From: "SPENCERS" <[EMAIL PROTECTED]> To: "Beau E. Cox" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, July 19, 2003 6:46 PM Subject: RE: Inatalled modules > Here you are Beau, > > #!/usr/bin/perl -w > > > # list all of the perl modules installed > > use

RE: Inatalled modules

2003-07-19 Thread SPENCERS
Here you are Beau, #!/usr/bin/perl -w # list all of the perl modules installed use strict; use File::Find ; for (@INC) { find(\&modules,$_) ; } sub modules { if (-d && /^[a-z]/) { $File::Find::prune = 1 ; return } return unless /\.pm$/ ; my $fullPath = "$File::Find::d

Inatalled modules

2003-07-19 Thread Beau E. Cox
Hi - I have misplaced my 'installed module version' script, and being lazy today :) , could someone remind me how to list the installed modules/versions present on a system? Nothing fancy. just get me started, please, and I can flesh it out from there... Aloha => Beau; == please visit ==

Re: chomp'ing EOL

2003-07-19 Thread Jamie Risk
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jamie Risk wrote: > > I've no control over the EOL of text files that I'm processing; is > > there a conveniant method using chomp() and the > > INPUT_RECORD_SEPERATOR ($/) to handle DOS/UNIX/MAC generated text > > files aut

Re: Regex - to simple to see?

2003-07-19 Thread Jeff 'japhy' Pinyan
On Jul 19, Jeff 'japhy' Pinyan said: >On Jul 19, Jerry Preston said: > >> $_ = "p8,INT,5" >> >> if( $_ =~ /(w+),INT,\d{2}$/ ) { >> } > >Well, you're not DOING anything inside the if block. I assume you are in >your actual code (it's best to SHOW us your actual code). > >I see one big error,

Re: Regex - to simple to see?

2003-07-19 Thread Jeff 'japhy' Pinyan
On Jul 19, Jerry Preston said: > $_ = "p8,INT,5" > > if( $_ =~ /(w+),INT,\d{2}$/ ) { > } Well, you're not DOING anything inside the if block. I assume you are in your actual code (it's best to SHOW us your actual code). I see one big error, one potential mistake, and one area for improveme

Re: Regex - to simple to see?

2003-07-19 Thread Michael Pohl
You're trying to match 2 digits after 'INT' --> {2} This means there must be exactly 2 of the previous entity, but you only have 1digt -> '5' !!! Michael Am Sonntag, 20. Juli 2003 02:50 schrieb Jerry Preston: > Hi! > > I know this is not as hard to do, but I do not seem to see the result: > >

Re: methods

2003-07-19 Thread Jeff 'japhy' Pinyan
On Jul 19, [EMAIL PROTECTED] said: >Whats the difference between class methods and instance methods on perl ? Syntactically, nothing. In fact, if you see method $foo @args; or $foo->method(@args); you can't be sure whether it's a class method or an instance method being called, since $fo

Regex - to simple to see?

2003-07-19 Thread Jerry Preston
Hi! I know this is not as hard to do, but I do not seem to see the result: $_ = "p8,INT,5" if( $_ =~ /(w+),INT,\d{2}$/ ) { } Thanks, Jerry

Re: methods

2003-07-19 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hi all, Whats the difference between class methods and instance methods on perl ? Simply put from perltoot: "More often than not, the class provides the user with little bundles. These bundles are objects. They know whose class they belong to, and how to behave. Users

CPAN problem

2003-07-19 Thread Ken Gordon
Running Perl 5.8.0 on Mac OS 10.1.5, when I try to connect the CPAN, the first time I enter a command I get the following errors. Any suggestions? dyld:: Too many arguments. _Perl_safefree _Perl_safemalloc _Perl_saferealloc _Perl_sv_2pv _perl_call_sv _perl_eval_sv -- To unsubscribe, e-mail: [EMAI

Dereferencing an array reference

2003-07-19 Thread Rob Richardson
Greetings! I am seriously confoogled about how to get my array back from a reference. This is the train scheduling program you've been hearing a lot about from me. The array holds the names of the crew members on the train. The train object is created with the following routine: sub new {

Re: methods

2003-07-19 Thread Oliver Schnarchendorf
On Sat, 19 Jul 2003 22:09:48 +0530 (IST), [EMAIL PROTECTED] wrote: > Hi all, > > Whats the difference between class methods and instance methods on perl ? > > kindly enlighten, > regards, > KM A class is a datastructure with methods that work upon this datastructures. An instance is a class aft

methods

2003-07-19 Thread km
Hi all, Whats the difference between class methods and instance methods on perl ? kindly enlighten, regards, KM -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie help

2003-07-19 Thread denis
Dont know if anyone has replyed yet.. But why not use "time"? Here's what I'm thinking.. my @t = localtime(time); my $today; $today = sprintf "%4d%02d%02d", $t[5]+1900, $t[4]+1, $t[3]; print "$today"; will print out todays date.. this will give you a place to start.. Denis On Thu, 17 Jul

Re: chomp'ing EOL

2003-07-19 Thread Rob Dixon
Jamie Risk wrote: > I've no control over the EOL of text files that I'm processing; is > there a conveniant method using chomp() and the > INPUT_RECORD_SEPERATOR ($/) to handle DOS/UNIX/MAC generated text > files automatically? If it helps, Perl is clever about what system it's running on, and set

RE: Script's Name

2003-07-19 Thread Nigel Peck - MIS Web Design
Thanks all :) > -Original Message- > From: Kristofer Hoch [mailto:[EMAIL PROTECTED] > Sent: 17 July 2003 23:09 > To: [EMAIL PROTECTED] > Subject: Re: Script's Name > > > > --- Nigel Peck - MIS Web Design <[EMAIL PROTECTED]> wrote: > > Can someone please remind a forgetful idiot how to g