#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my @arr; while (<DATA>){ chomp; push @arr, $_ if s/ \s+ ( [\/]{2} .+ ) /$1/xms; } print Dumper \@arr; __DATA__ //opiopiopi -//popoiop uytyu --- //llmùlùm //fghfghf -//sdsdfsdfs
Output : $VAR1 = [ '//opiopiopi', '//llmùlùm', '//fghfghf' ];
hth,
PooLpi
In reply to Re: Help in reading log file
by poolpi
in thread Help in reading log file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |