Re: Splitting and comparing file names
- From: "Jake" <Jake.Newly@xxxxxxxxx>
- Date: 14 Dec 2006 10:15:38 -0800
On Dec 14, 9:06 am, boyd <tbmoo...@xxxxxxxxxxx> wrote:
In article <1166114810.087246.179...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
# insert something like this:Thanks again for the help Boyd! I truly appreciate the help with this
use List::Util qw(sum); # normally put near the top.
$filename =~ s/.load$//;
my($host, @times) = split '#', $filename;
my $avg = sum(@times) / (scalar @times); # @times would work,
# but scalar guarantees the number of elements.
and my previous post.
Regards,
Jake
.
- Follow-Ups:
- Re: Splitting and comparing file names
- From: Jake
- Re: Splitting and comparing file names
- References:
- Splitting and comparing file names
- From: Jake
- Re: Splitting and comparing file names
- From: boyd
- Splitting and comparing file names
- Prev by Date: Re: Splitting and comparing file names
- Next by Date: Re: [SPOILER] Re: New Quiz: "What does this code do?" (1-December-2006)
- Previous by thread: Re: Splitting and comparing file names
- Next by thread: Re: Splitting and comparing file names
- Index(es):