getting variables used in a file

2004-03-14 Thread N, Guruguhan \(GEAE, Foreign National, EACOE\)
Hi All, Is there any way we can get the list of variables used in a perl file without opening it? Any help in this regard is welcome. Thanks Regards Guruguhan EACoE, India. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Debugging(perl -d)

2004-03-14 Thread David le Blanc
> -Original Message- > From: Mike Ni [mailto:[EMAIL PROTECTED] > Sent: Monday, 15 March 2004 10:43 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Debugging(perl -d) > > Hey, > > I was handed several perl files written for the Apache > Web Server. The person who wrote these

Re: chown-ing symlink

2004-03-14 Thread Wiggins d'Anconia
Paul Johnson wrote: On Sun, Mar 14, 2004 at 06:20:21PM -0500, Wiggins d'Anconia wrote: Ohad Ohad wrote: chown seems to be able only to follow links and change the destination. Anyway to change the link itself, I wouldn't want to run system("chown -h $file") . . . I'm using various unix machin

Re: chown-ing symlink

2004-03-14 Thread Paul Johnson
On Sun, Mar 14, 2004 at 06:20:21PM -0500, Wiggins d'Anconia wrote: > Ohad Ohad wrote: > >chown seems to be able only to follow links and change the destination. > > > >Anyway to change the link itself, I wouldn't want to run system("chown > >-h $file") . . . > > > >I'm using various unix machine

Debugging(perl -d)

2004-03-14 Thread Mike Ni
Hey, I was handed several perl files written for the Apache Web Server. The person who wrote these isn't here any more. I need to trace and document the perl files. I udnerstand there is a built-in debuuger come with the perl - "!perl -d". However, since these perl files were wriitten for the

Re: chown-ing symlink

2004-03-14 Thread Wiggins d'Anconia
Ohad Ohad wrote: chown seems to be able only to follow links and change the destination. Anyway to change the link itself, I wouldn't want to run system("chown -h $file") . . . I'm using various unix machine (Linux, SunOs etc.) Remove the link and re-create it. perldoc -f unlink perldoc -f sym

Re: err, this is stupid, I know...

2004-03-14 Thread Chris Knipe
> First, the first argument to split is *always* a regex. A lot of people > are in the habit of passing a quoted string, but according to the > perl5-porters (in a thread about a year or so ago) the first argument > should always be a regex. So, use the // or m// syntax. > > Doing that should m

Re: err, this is stupid, I know...

2004-03-14 Thread Randy W. Sims
On 03/14/04 17:50, Chris Knipe wrote: use warnings; $ARGV[4] = "100.200.30.40"; # for the sake of clarification. my @IPs = split('.', $ARGV[4]); First, the first argument to split is *always* a regex. A lot of people are in the habit of passing a quoted string, but according to the perl5-porter

err, this is stupid, I know...

2004-03-14 Thread Chris Knipe
use warnings; $ARGV[4] = "100.200.30.40"; # for the sake of clarification. my @IPs = split('.', $ARGV[4]); if ($IPs[1] < 100) { print "TRUE"; } else { print "FALSE"; } running it... Use of uninitialized value in numeric lt (<) at ./ppp.rotate line 6. And the condition is *always* true. Now

Re: Way to create Windows Services.

2004-03-14 Thread Jenda Krynicky
From: Viraj Purang <[EMAIL PROTECTED]> > Is there a PERL API > using which I can create wrapper windows services around > batch files. Beg your pardon? What the heck is "wrapper windows service". If you want to create a windows service you need to use Win32::Daemon (plus optionaly Win32::Daemo

Re: Problem using require()

2004-03-14 Thread Randy W. Sims
On 3/14/2004 9:58 AM, B. Fongo wrote: I have several modules which needs global variables from a text file (global.txt). Within each module, I use require "global.txt" to get my variables. global.txt -

Re: Improving performance when working with large text files

2004-03-14 Thread James Edward Gray II
On Mar 14, 2004, at 2:25 AM, R. Joseph Newton wrote: I will have to give some thought to the implications of this for programming practice. If you find yourself playing with slurping (I'm a fan, as you can probably tell), treat yourself to IO:All from the CPAN, while you're at it. That modules

Re: help with a regex and greediness

2004-03-14 Thread Stuart White
--- "R. Joseph Newton" <[EMAIL PROTECTED]> wrote: > Stuart White wrote: > I don't think so: > ... > The only place a colon split splits is where you > have a colon. > That was MY typo. Oops. In the book there is a colon after merlyn, not a question mark. Irrespective of that, I was still

Problem using require()

2004-03-14 Thread B. Fongo
I have several modules which needs global variables from a text file (global.txt). Within each module, I use require "global.txt" to get my variables. global.txt $shop =

Re: help with a regex and greediness

2004-03-14 Thread Stuart White
--- "R. Joseph Newton" <[EMAIL PROTECTED]> wrote: > Stuart White wrote: > > > > the file format is not sloppy at all. I was just > > confused as to why I couldn't use split on the > first > > space score comma and space, and then the next > space > > score. <-Perhaps I just answered my questio

POD

2004-03-14 Thread Malloc7c3
Is there any GUI POD Creator? Thanks, Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: get file type info from lstat?

2004-03-14 Thread John W. Krahn
Xuer wrote: > > Can I get the file type info from the result list of lstat? > such as if it's a dir( as -d), or a slink( as -s) ...etc. > how to ? -s is for a socket, -l is for a symbolic link. The complete details are in the stat entry of perlfunc.pod. perldoc -f stat John -- use Perl; prog

Re: not getting the syntax

2004-03-14 Thread R. Joseph Newton
James Edward Gray II wrote: > On Mar 13, 2004, at 12:36 AM, R. Joseph Newton wrote: > > > Charlotte Hee wrote: > > > >> $byname{ Owen }{ PHONE } = '999-'; > > > > Should be: > > $byname{ Owen }->{ PHONE } = '999-'; > > are you using strict? The code above should cause an error, not just

Re: Improving performance when working with large text files

2004-03-14 Thread R. Joseph Newton
James Edward Gray II wrote: > On Mar 13, 2004, at 1:09 PM, R. Joseph Newton wrote: > > > "West, William M" wrote: > > > > > >> by slurping the WHOLE file into memory at once (do you have room to > >> but a 45 > >> megabyte file into memory?) the speed of the processing went up- > > > > Highly unl