Re: Problem with package

2005-09-20 Thread Todd W
"Charles K. Clarkson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In script: > #!/usr/bin/perl > > use strict; > use warnings; > > use lib '.'; > use Inn; > Not trying to be pedantic but just want to add here, the current directory is set in @INC by default when perl is compile

Re: Math::Currency compilation failure

2005-09-20 Thread Todd W
"Peter Rabbitson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hello list, > > I am trying to install Math::Currency from cpan and I can not make > > anything out of the error message I get. Any advice would be > > appreciated. > > > > Peter > > > > > > > > CPAN.pm: G

about sleep: is it a bug?

2005-09-20 Thread Jeff Pan
HI, I found a problem in my script.I call sleep function in a child process (sleep 3600 sec,then wake up and do something). But these days I found sleep can't wake up.I checked it carefully,and find that when sleeping,if disks I/O error occured (such as 100% disks space using,no free space for wri

RE: Hash of Arrays

2005-09-20 Thread Timothy Johnson
Matija Papec wrote: > > Christopher Spears wrote: >> while ($line = <>) { >> ($who, $rest) = split /:\s*/, $line, 2; >> @fields = split ' ', $rest; >> $HoA{$who} = [ @fields ]; >> } >> >> The part that confuses me is: >> >> ($who, $rest) = split /:\s*/, $line, 2; >> >> I understand t

Re: Hash of Arrays

2005-09-20 Thread Matija Papec
Christopher Spears wrote: while ($line = <>) { ($who, $rest) = split /:\s*/, $line, 2; @fields = split ' ', $rest; $HoA{$who} = [ @fields ]; } The part that confuses me is: ($who, $rest) = split /:\s*/, $line, 2; I understand that it takes the input and splits it into two parts alo

Re: Math::Currency compilation failure

2005-09-20 Thread Peter Rabbitson
> Hello list, > I am trying to install Math::Currency from cpan and I can not make > anything out of the error message I get. Any advice would be > appreciated. > > Peter > > > > CPAN.pm: Going to build J/JP/JPEACOCK/Math-Currency-0.40.tar.gz > > Checking if your kit is complete...

Math::Currency compilation failure

2005-09-20 Thread Peter Rabbitson
Hello list, I am trying to install Math::Currency from cpan and I can not make anything out of the error message I get. Any advice would be appreciated. Peter CPAN.pm: Going to build J/JP/JPEACOCK/Math-Currency-0.40.tar.gz Checking if your kit is complete... Looks good Writing Make

Fwd: Hash of Arrays

2005-09-20 Thread Philippe Aerts
-- Forwarded message -- From: Philippe Aerts <[EMAIL PROTECTED]> Date: 20-sep-2005 20:04 Subject: Re: Hash of Arrays To: Christopher Spears <[EMAIL PROTECTED]> Hi Christopher, The syntax of the split command is split /PATTERN/,EXPR,LIMIT Limit specifies the maximum numbers of f

Re: Hash of Arrays

2005-09-20 Thread Prasanna Kothari
Hi. From documentation: perldoc -f split split /PATTERN/,EXPR,LIMIT If LIMIT is specified and positive, splits into no more than that many fields (though it may split into fewer). If LIMIT is unspecified or zero, trailing null fields are stripped. If LIMIT is negative, it is treated as if an ar

Re: Hash of Arrays

2005-09-20 Thread Ankur Gupta
On 9/20/2005 11:16 PM Christopher Spears wrote: I've been learning about data structures by reading the Programming Perl book. Here is a code snippet: while ($line = <>) { # If $line = "abcd: efgh: ijkl"; ($who, $rest) = split /:\s*/, $line, 2; # then $who = "abcd" and $rest = "efgh:

Hash of Arrays

2005-09-20 Thread Christopher Spears
I've been learning about data structures by reading the Programming Perl book. Here is a code snippet: while ($line = <>) { ($who, $rest) = split /:\s*/, $line, 2; @fields = split ' ', $rest; $HoA{$who} = [ @fields ]; } The part that confuses me is: ($who, $rest) = split /:\s*/, $li

Re: @ARGV

2005-09-20 Thread Hans Ginzel
Binish A R napsal(a): arguments. Then how come I cannot access the first element with $ARGV[0]? I think @ARGV wont work in command line. Try to write the code in a script and check it out. #!/usr/bin/perl -w print $ARGV[0]; $ perl script.pl arg_1 This returns arg_1 same as c:\>perl -e "