in reply to extra space with /
to:my ( $name, $value ) = ( $line =~ /^\s*(.*?):(.*)$/ );
This might squeeze any leading spaces from $value. Noting seeing the data file I'm not sure this is necessary. But from the other comments it looks like "poke" around time.my ( $name, $value ) = ( $line =~ /^\s*(.*?):\s*(.*)$/ );
Claude
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: extra space with /
by malaga (Pilgrim) on Apr 03, 2001 at 12:02 UTC |