Rodrick Brown wrote:
> I have a data file with the following about a thousand or so records.
>
> === XX01 ===
> 0
> x01
>
>
> I performing the following match to just pick out the strings
>
> while()
> {
> if( $_ =~ m/^=+\s(\w+)/ )
> {
>$hostna
Rodrick Brown wrote:
I have a data file with the following about a thousand or so records.
=== XX01 ===
0
x01
I performing the following match to just pick out the strings
while()
{
if( $_ =~ m/^=+\s(\w+)/ )
{
$hostname = lc $1;
}
print $ho
I have a data file with the following about a thousand or so records.
=== XX01 ===
0
x01
I performing the following match to just pick out the strings
while()
{
if( $_ =~ m/^=+\s(\w+)/ )
{
$hostname = lc $1;
}
print $hostname . "\n";
}
some