RE: references and freeing memory

2004-06-04 Thread Freimuth,Robert
>> The perlref docs state "Hard references are smart--they keep track of >> reference counts for you, automatically freeing the thing referred to >> when its reference count goes to zero." My interpretation of this is >> that when a reference goes out of scope the memory used by >> the referent i

references and freeing memory

2004-06-04 Thread Freimuth,Robert
Hi all, The perlref docs state "Hard references are smart--they keep track of reference counts for you, automatically freeing the thing referred to when its reference count goes to zero." My interpretation of this is that when a reference goes out of scope the memory used by the referent is freed

RE: Size checking?

2004-04-20 Thread Freimuth,Robert
Sorry if this is a double post - I got a message saying it bounced... > >> In truth, I used LWP because I was already using it in > >> another part of the program, and because I thought the > >> 'head' and 'getstore' functions would do > >> what I needed (so it was out of laziness more than anyth

RE: Size checking?

2004-04-20 Thread Freimuth,Robert
> > > I have a perl script that FTPs a file down from another server > > [snip] > > > I am not sure HOW to do the file size check. > > > > I wrote the following using the LWP::Simple module: > > > > print "beginning download of ", ftp_file_size( $ftp_path_gz ), "\n"; > > > > $status = download_f

RE: Size checking?

2004-04-19 Thread Freimuth,Robert
> I have a perl script that FTPs a file down from another server [snip] > I am not sure HOW to do the file size check. I wrote the following using the LWP::Simple module: print "beginning download of ", ftp_file_size( $ftp_path_gz ), "\n"; $status = download_file( $ftp_path_gz, $local_path_gz );

RE: links in POD

2004-03-06 Thread Freimuth,Robert
> You know, this is all sort of like using > > DocSet 0.16 from CPAN > http://search.cpan.org/~stas/DocSet-0.16/ > > Have you seen it? Not until you just mentioned it. Looks interesting - thanks for the suggestion! Bob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

RE: links in POD

2004-03-05 Thread Freimuth,Robert
> > I'm trying to use POD to document my application. I have about 5 > > different doc files, and I'd like to create links between them when > > they are translated from POD to HTML. For example, in doc > file 1 I'd > > like to say '...using the foo function, as described in > 2>...', and have

links in POD

2004-03-03 Thread Freimuth,Robert
Hi all, I'm trying to use POD to document my application. I have about 5 different doc files, and I'd like to create links between them when they are translated from POD to HTML. For example, in doc file 1 I'd like to say '...using the foo function, as described in ...', and have the link open d

RE: using Getopt with subroutines

2003-11-21 Thread Freimuth,Robert
> > Since I anticipate using this module in multiple programs, > > I'd like to keep the parameter list as generic > > as possible (in terms of order and requirements). > > That is a worthy cause, but remember that the arguments > that will be passed in need to be passed in a specific order: > >

using Getopt with subroutines

2003-11-20 Thread Freimuth,Robert
Hello, I have a subroutine that is contained within its own module and package. It currently takes 7 different arguments, but only 2 of them are required because I can set defaults for the other 5. Since I anticipate using this module in multiple programs, I'd like to keep the parameter list as

Putting sort routines in modules

2003-06-07 Thread Freimuth,Robert
Hello everyone, I was reading about sort in the camel (3rd ed., p. 793) and I found that sorting subroutines must be placed in the same package as they are called from since $a and $b are package globals. Therefore, sorting functions cannot be "modulized" without help. The camel suggests two wor