Great thank you!
On Fri, Feb 21, 2014 at 6:02 PM, Jim Gibson wrote:
>
> On Feb 21, 2014, at 6:21 AM, Wernher Eksteen wrote:
>
> > Hi all,
> >
> > From the below file names I only need the version number 1.2.4 without
> explicitly specifying it.
> >
> > check_mk-1.2.4.tar.gz
> > check_mk-agen
Thanks, this also worked for me...
foreach my $i (@fileList) {
push @versions, $i =~ m/\b(\d+\.\d+\.\d+)\b/g;
}
my %seen;
my @unique = grep { ! $seen{$_}++ } @versions;
On Sun, Feb 23, 2014 at 4:27 PM, Jim Gibson wrote:
>
> On Feb 23, 2014, at 5:10 AM, Wernher Eksteen wrote:
>
> > H
On Feb 23, 2014, at 5:10 AM, Wernher Eksteen wrote:
> Hi,
>
> Thanks, but how do I assign the value found by the regex to a variable so
> that the "1.2.4" from 6 file names in the array @fileList are print only
> once, and if there are other versions found say 1.2.5 and 1.2.6 to print the
>
On Feb 21, 2014, at 6:21 AM, Wernher Eksteen wrote:
> Hi all,
>
> From the below file names I only need the version number 1.2.4 without
> explicitly specifying it.
>
> check_mk-1.2.4.tar.gz
> check_mk-agent-1.2.4-1.noarch.rpm
> check_mk-agent-logwatch-1.2.4-1.noarch.rpm
> check_mk-agent-
Thanks, I've changed it to use LWP.
I'm not sure how to download the actual file with LWP, so I've tried
File::Fetch which works, but it doesn't show download progress/status etc,
just hanging blank until the download completes. Any pointers on getting
download status/progress details?
foreach my
Use LWP to get web data - not lynx and the like unless you can't help it. I
prefer using Web::Scraper to parse html but either way it's probably best
not to use a regex (see SO and similar for discussions on the like).
On Feb 23, 2014 8:13 AM, "Wernher Eksteen" wrote:
>
> Hi,
>
> Thanks, but how
Hi,
Thanks, but how do I assign the value found by the regex to a variable so
that the "1.2.4" from 6 file names in the array @fileList are print only
once, and if there are other versions found say 1.2.5 and 1.2.6 to print
the unique values from all.
This is my script thus far. The aim of this s
On Fri, 21 Feb 2014 16:21:57 +0200
Wernher Eksteen wrote:
> Hi all,
>
> From the below file names I only need the version number 1.2.4 without
> explicitly specifying it.
>
> check_mk-1.2.4.tar.gz
> check_mk-agent-1.2.4-1.noarch.rpm
> check_mk-agent-logwatch-1.2.4-1.noarch.rpm
> check_mk-ag
Hi all,
>From the below file names I only need the version number 1.2.4 without
explicitly specifying it.
check_mk-1.2.4.tar.gz
check_mk-agent-1.2.4-1.noarch.rpm
check_mk-agent-logwatch-1.2.4-1.noarch.rpm
check_mk-agent-oracle-1.2.4-1.noarch.rpm
mk-livestatus-1.2.4.tar.gz
mkeventd-1.2.4.tar