Sharing instances of objects between packages

2004-01-05 Thread Shawn McKinley
Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child? Is there a way to inherit the parent object? Example below (sorry for the length). TIA, Shawn A.pm

RE: Sharing instances of objects between packages

2004-01-05 Thread Shawn McKinley
Hello again, Replying to this one since it is the shortest... Thanks for the responses... The illustration, admittedly, was sparse at best master Drieux :-) However, I do want to have independent instances beyond the A.pm. Maybe I am making this too difficult, not sure yet, but I will do some

RE: My stupidity! (WAS RE: Mail::Sender weirdness)

2003-12-30 Thread Shawn McKinley
[snip] Right, but my question is why do I need to authenticate local to remote and not remote to local not why do I have to authenticate at all. I'm well aware of the spam relay fun! :) [snip] If you are going to authenticate remote to local, that would mean every email server trying to

RE: How to count the size of files in a directory

2003-12-28 Thread Shawn McKinley
Hello, How about: use strict; my $dir='c:/test'; my $match='^AB'; opendir(D,$dir) or die Can't open $dir: $!\n; my @files=readdir(D); close(D); my $totalsize=0; for(@files) { next if(!/$match/); $totalsize+=(-s $dir/$_); } print $totalsize,$/; Shawn -Original Message- From:

RE: the ref() function: what does it mean when ...

2003-12-28 Thread Shawn McKinley
-Original Message- From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 3:50 PM To: [EMAIL PROTECTED] Subject: Re: the ref() function: what does it mean when ... Wiggins == Wiggins D Anconia [EMAIL PROTECTED] writes: Wiggins Out of

Cross platform default Printer

2003-12-18 Thread Shawn McKinley
Does anyone know of a way to find the default printer? I have found there are some ways to do it on a single platform, but I was wondering if there is a way to do it without any OS proprietary code. I have a script that will need to find the default printer on Win(98 - XP), *nix, and Mac(OS 8