RE: Spam:Re: Autmatic function creation

2004-11-16 Thread Michael Kraus
Hi! You mean something like: --START-- our %InheritableClassData = ( DBH => undef, Q => undef, Handler => undef, ); foreach (keys %InheritableClassData) { $$_ = sub { shift; $InheritableClassData{$_} = shift if @_;

RE: Spam:RE: Autmatic function creation

2004-11-16 Thread Michael Kraus
G'day... Yeah, I should have used qw not qq, and after I sent it I thought "Why didn't I just say keys %InheritableClassData instead.." :) I'm trying to create a class that has data members which are the same for all instances, including instances of derived classes, as well as containing data me

Re: Searching tecknical documentation

2004-11-16 Thread Stephen Liu
Hi Adam and other folks, Tks for your advice. I have Acrobat Reader, Xpdf-viewer and xpdf-3.00-3.4 running on FC2. My problem is unable to get them evoked on the browser, Mozilla 1.7.3. I have "Control Center" setup on "File Associates" to evoke pdf files with them. IIRC, Mozilla is not contro

RE: Autmatic function creation

2004-11-16 Thread Charles K. Clarkson
Michael Kraus <[EMAIL PROTECTED]> wrote: : Just wondering if this code snippet will behave as expected, : and if not then why not? :) No, I don't think so. One error is in using the qq() operator instead of the qw() operator. Even with that fix, perl throws syntax errors. : --START-- : our

Re: date subtraction

2004-11-16 Thread Chasecreek Systemhouse
On Tue, 16 Nov 2004 22:34:40 -0500 (EST), Chris Devers <[EMAIL PROTECTED]> wrote: > This is a FAQ -- if this description doesn't make clear how to do it, > there's plenty of code out there that will show you how it works. There are also a ton of date "math" modules out there on search.cpan.org

Re: Autmatic function creation

2004-11-16 Thread K-sPecial
Michael Kraus wrote: Just wondering if this code snippet will behave as expected, and if not then why not? :) --START-- our %InheritableClassData = ( DBH => undef, Q => undef, Handler => undef, ); foreach (qq(DBH Q Handler)) { sub $_ { shift; $Inherita

Autmatic function creation

2004-11-16 Thread Michael Kraus
Just wondering if this code snippet will behave as expected, and if not then why not? :) --START-- our %InheritableClassData = ( DBH => undef, Q => undef, Handler => undef, ); foreach (qq(DBH Q Handler)) { sub $_ { shift; $Inherita

module installation

2004-11-16 Thread perl
Hi, I installed few perl module locally and I try to install another one which depends on the previously installed ones (locally) but I get the warning that these modules can not be loaded example: billmax:~/src/perl/XML-DOM-1.43$ perl Makefile.PL PREFIX=~/usr/local/lib/perl5 Checking if your k

Re: date subtraction

2004-11-16 Thread Chris Devers
On Tue, 16 Nov 2004, Vladimir Lemberg wrote: > Could you advise me how can I subtract two dates? Convert the dates to seconds (i.e. however many millions of seconds since the Unix epoch began on 1 Jan 1970), then do the arithmatic on the two numbers you get, then convert the result to a more fa

date subtraction

2004-11-16 Thread Vladimir Lemberg
Hi All, Could you advise me how can I subtract two dates? I have script: open FILE, "; foreach (@records){ ($segID,@time) = (split) [2,4,6,7,9]; print "$segID @time\n"; } It produces these lines: Seq:1 Sat Nov 13 21:57:34 PST 2004 Seq:2 Sat Nov 13 22:05:17 PST 2004 Seq:3 Sun Nov 14 03:42:01 P

Re: Searching tecknical documentation (correction)

2004-11-16 Thread K-sPecial
Correction, I do admit, obviously. I hate for having to ever do such a thing. It's the sort of things i'm forced to live with daily. --K-sPecial -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Searching tecknical documentation

2004-11-16 Thread sentinel
Stephen Liu wrote: Hi Adam, --- "Adam K. Wuellner" <[EMAIL PROTECTED]> wrote: Beginning Perl: has all the chapters in PDF format. And it's legal. I can't browser the links to each chapter, only a blank page resulted. I'm running FedoraCor

Re: Searching tecknical documentation

2004-11-16 Thread Adam K . Wuellner
On Nov 16, 2004, at 6:39 PM, Stephen Liu wrote: Hi Adam, --- "Adam K. Wuellner" <[EMAIL PROTECTED]> wrote: Beginning Perl: has all the chapters in PDF format. And it's legal. I can't browser the links to each chapter, only a blank page resulted. I'

Re: Searching tecknical documentation

2004-11-16 Thread K-sPecial
Randal L. Schwartz wrote: "K-sPecial" == K-sPecial <[EMAIL PROTECTED]> writes: K-sPecial> But on another note, I don't believe many of the people K-sPecial> that claim this as 'stealing' are personaly looking in the K-sPecial> perspective of someone living in poverty and simply wishing K-sPecial>

Re: Searching tecknical documentation

2004-11-16 Thread Stephen Liu
Hi Adam, --- "Adam K. Wuellner" <[EMAIL PROTECTED]> wrote: > Beginning Perl: > has > all > the chapters in PDF format. And it's legal. I can't browser the links to each chapter, only a blank page resulted. I'm running FedoraCore2. Please adv

Re: Searching tecknical documentation

2004-11-16 Thread sentinel
-sPecial> But on another note, I don't believe many of the people K-sPecial> that claim this as 'stealing' are personaly looking in the K-sPecial> perspective of someone living in poverty and simply wishing K-sPecial> to learn. Nobody is *entitled* to look at copyrighted data. No matter what their

Re: Searching tecknical documentation

2004-11-16 Thread Randal L. Schwartz
> "K-sPecial" == K-sPecial <[EMAIL PROTECTED]> writes: K-sPecial> But on another note, I don't believe many of the people K-sPecial> that claim this as 'stealing' are personaly looking in the K-sPecial> perspective of someone living in poverty and simply wishing K-sPecial> to learn. Nobody i

Re: Searching tecknical documentation

2004-11-16 Thread K-sPecial
Where I live that's cheaper than Internet access. EB I was implying that they could be viewed from the actual library. $20 a month can actualy be alot of money. --K-sPecial -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Called script does not return a true value?

2004-11-16 Thread John Bruin
Scott No, so I have now put '1;' at the end of 'second_script.pl' and this has stopped the message. Thanks very much. John -Original Message- From: Scott Pham [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 11:13 To: 'John Bruin'; [EMAIL PROTECTED] Subject: RE: Called script does not r

RE: Called script does not return a true value?

2004-11-16 Thread Scott Pham
Do you have a '1;' at the end of your 'second_script.pl'? -Original Message- From: John Bruin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 5:03 PM To: [EMAIL PROTECTED] Subject: Called script does not return a true value? I have a perl script that calls another perl script.

Called script does not return a true value?

2004-11-16 Thread John Bruin
I have a perl script that calls another perl script. Originally it was one big script but then I decided to split it into 2. It works fine but was wondering what the following error message refers to: "second_script.pl did not return a true value at first_script.pl line 235" This message is gener

Re: Searching tecknical documentation

2004-11-16 Thread Ed Budd
K-sPecial wrote: Randal L. Schwartz wrote: "K-sPecial" == K-sPecial <[EMAIL PROTECTED]> writes: K-sPecial> Damn (if I may say so), nice link. Die, pirate scum. You insult me personally by pirating my words. How do you expect me to have the means to write future books? I simply said it was a nice

Re: Searching tecknical documentation

2004-11-16 Thread Adam K . Wuellner
On Nov 15, 2004, at 9:02 PM, Stephen Liu wrote: Please advise where can I find similar free documentation on Internet, like; programming perl (O'reilly) Learning Perl (Llama) Programming Perl (Camel) Perl Cookbook (Ram) Beginning Perl: has all the ch

Recursive function

2004-11-16 Thread Eaton Elyahu Doron
Hi all, Why is the following won't work recursively ? The purpose is simple, search directory inside $depth levels for directories. But since the stop recursive is when depth is "0", after the search starts the first directory it stops when it reaches the level in that first directory and doe

Re: Append on top (easy sollution)

2004-11-16 Thread K-sPecial
K-sPecial wrote: Rajesh Dorairajan wrote: Does anyone know of a way to open a file in append mode and append on top of the file? Thanks in Advance, --Rajesh I don't know why people are having a problem with this sollution, simply open in append mode so open doesn't clobber the file, then use se

Re: Searching tecknical documentation

2004-11-16 Thread Tom Yarrish
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There's also a section on http://learn.perl.org that has books online on it. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBmkXKZWzkfeDiTw4RAk29AJ9I3T1E3Gbc1DY+R1xMmmDn5wUfCACffQe5 HY4RprdalRZX2MbUd1oB/sU= =n/wv -END PGP S

Re: Searching tecknical documentation

2004-11-16 Thread u235sentinel
Actually he wanted free documentaion not Oreilly stuff. It's not free last time I checked. If you want Oreilly stuff then try this: http://oreilly.com/ > This is just what you want: > > http://www.mamiyami.com/document/oreilly/ > > On Tue, 16 Nov 2004 11:02:18 +0800 (CST) > Stephen Liu <[E

Re: Searching tecknical documentation

2004-11-16 Thread Christopher Maujean
On Tue, 2004-11-16 at 02:02, Gavin Henry wrote: > Stephen Liu said: > > Hi folks, > > > > Please advise where can I find similar free > > documentation on Internet, like; > > > > programming perl (O'reilly) > > Learning Perl (Llama) > > Programming Perl (Camel) > > Perl Cookbook (Ram) It might als

Re: Searching tecknical documentation

2004-11-16 Thread K-sPecial
Randal L. Schwartz wrote: "K-sPecial" == K-sPecial <[EMAIL PROTECTED]> writes: K-sPecial> Damn (if I may say so), nice link. Die, pirate scum. You insult me personally by pirating my words. How do you expect me to have the means to write future books? I simply said it was a nice link. I didn't s

Re: Searching tecknical documentation

2004-11-16 Thread Gavin Henry
Randal L. Schwartz said: >> "K-sPecial" == K-sPecial <[EMAIL PROTECTED]> writes: > > K-sPecial> Damn (if I may say so), nice link. > > Die, pirate scum. > > You insult me personally by pirating my words. How do you expect > me to have the means to write future books? Well said. > > -- > Ra

Re: options and arguments

2004-11-16 Thread Wiggins d Anconia
> Hello together, > I have another problem with arguments and switches as options for a process. > I want one switch and several arguments to call the process. > Example: kermit.pl -v thunder.txt compare.txt > > I try to implement this actually with a hash: > > #!/usr/bin/perl > > use warnings;

RE: Changing registry ACL?

2004-11-16 Thread Jenda Krynicky
From: <[EMAIL PROTECTED]> > How do you compensate for the huge memory leak in Win32::Perms? When I > run this script (which I don't know if it is correct) the memory > climbs forcing me to kill the perl proccess. Well ... I'd inform the module author and send him the script and description of th

Re: Searching tecknical documentation

2004-11-16 Thread Randal L. Schwartz
> "K-sPecial" == K-sPecial <[EMAIL PROTECTED]> writes: K-sPecial> Damn (if I may say so), nice link. Die, pirate scum. You insult me personally by pirating my words. How do you expect me to have the means to write future books? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc.

Re: Segmentation fault error and its causes

2004-11-16 Thread John
supriya devburman wrote: some time script gives 'Segmentation fault' error what does it mean n what is its cause thnx.. I don't see Perl segfault often, but one place I have seen it is when an old version of Perl parses an XML file which contains a BOM. Are you parsing XML with an old version

Re: Segmentation fault error and its causes

2004-11-16 Thread Chris Devers
On Tue, 16 Nov 2004, supriya devburman wrote: > some time script gives 'Segmentation fault' error > what does it mean [and] what is its cause It's a very bad error, but chances are not your fault. "Segfaults" are more common with compiled languages like C or C++ than interpreted languages like

Segmentation fault error and its causes

2004-11-16 Thread supriya devburman
some time script gives 'Segmentation fault' error what does it mean n what is its cause thnx.. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED]

options and arguments

2004-11-16 Thread Christian Stalp
Hello together, I have another problem with arguments and switches as options for a process. I want one switch and several arguments to call the process. Example: kermit.pl -v thunder.txt compare.txt I try to implement this actually with a hash: #!/usr/bin/perl use warnings; use strict; use Fil

Segmentation fault error and its causes

2004-11-16 Thread supriya devburman
some time script gives 'Segmentation fault' error what does it mean n what is its cause thnx.. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Searching tecknical documentation

2004-11-16 Thread Gavin Henry
Stephen Liu said: > Hi folks, > > Please advise where can I find similar free > documentation on Internet, like; > > programming perl (O'reilly) > Learning Perl (Llama) > Programming Perl (Camel) > Perl Cookbook (Ram) You can't that's why they charge for it ;-) > Google search brought me tons

Cookies

2004-11-16 Thread Charles Teague
Im trying to make a script that will login to my Pitas blog and then post an entry. I seem to be having problems with the cookies. The script is: #!/usr/bin/perl use HTTP::Request::Common qw(POST); use LWP::UserAgent; use HTTP::Cookies; #Get needed info print 'Login: '; $uname = ; print 'Passw

Cookies

2004-11-16 Thread Charles Teague
Im trying to make a script that will login to my Pitas blog and then post an entry. I seem to be having problems with the cookies. The script is: #!/usr/bin/perl use HTTP::Request::Common qw(POST); use LWP::UserAgent; use HTTP::Cookies; #Get needed info print 'Login: '; $uname = ; print 'Passw