"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
"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
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
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
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
> 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...
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
-- 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
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
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:
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
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 "
12 matches
Mail list logo