You could reduce the length of the string in a "brute force" way using substr. For something more elegant, you'd probably need regexen. Here's an example which deletes the date as you suggested.
s/\[.*\]//;
For more info on this kind of thing you should read perlre and perlop.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Reducing a line read into $_
by davorg
in thread Reducing a line read into $_
by locked_user mr_leisure
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |