Thanks Shawn, Appreciate your help !!
On Tue, Aug 14, 2012 at 12:57 PM, Shawn H Corey wrote:
> On Tue, 14 Aug 2012 11:50:14 +0100
> jet speed wrote:
>
> > i have an @newfa with 50:00:00:08:44:9a:fb:79:90
> > 50:00:00:90:44:9a:fb:30:90 50:00:00:55:44:9a:fb:79:66 and a file as
> > below. now i wa
ׁHi jet speed,
On Tue, 14 Aug 2012 11:50:14 +0100
jet speed wrote:
> Hi Shlomi,
>
> Thanks for the quick response, appreciate it.
>
> I modified the code as below and it works.
>
> foreach $fa(@falist) {
> my @parts = $fa =~m/(..)/g;
> my $with_colons = join (':', @parts);
> push @newfa,$wit
On Tue, 14 Aug 2012 11:50:14 +0100
jet speed wrote:
> i have an @newfa with 50:00:00:08:44:9a:fb:79:90
> 50:00:00:90:44:9a:fb:30:90 50:00:00:55:44:9a:fb:79:66 and a file as
> below. now i want check if the @newfa entry present in the file if it
> exists then i need to print the matching zone: nam
Hi Shlomi,
Thanks for the quick response, appreciate it.
I modified the code as below and it works.
foreach $fa(@falist) {
my @parts = $fa =~m/(..)/g;
my $with_colons = join (':', @parts);
push @newfa,$with_colons;
}
print @newfa;
I have one more query, please help
i have an @newfa with 50:00
Hi Sj,
On Tue, 14 Aug 2012 10:55:13 +0100
jet speed wrote:
> Hi All,
>
> I have a file as below
>
> file.txt
> 5008449AFB7494
> 5008449AFB749C
> 5008449AFB779D
>
> now i want to introduce : inbetween as below for each of these
> entries in the file
>
> 50:00:00:08:44:9A:FB:74:90
Hi All,
I have a file as below
file.txt
5008449AFB7494
5008449AFB749C
5008449AFB779D
now i want to introduce : inbetween as below for each of these entries in
the file
50:00:00:08:44:9A:FB:74:90
i did come across join function in perl, not sure how to apply inbetween
each entries