LAdProg2005
Programmer
hi all again,
i am going through file parsing strings...
ie.
Date: 08/01/09 By: LAdProg
Info: This is test
by \lad
rog
20'05
i go by line match the string:
$myLine =~ /Date/
then i use substring funtion to get whatever is after ':'
$date=substr($line,5,8);
and so on...issue could be that length of string after : could be any number long
is there a better way of doing this then going through substring...i can see substring not working for info: as after : there is new lines and text with characters could be any number long.
thanks
i am going through file parsing strings...
ie.
Date: 08/01/09 By: LAdProg
Info: This is test
by \lad
20'05
i go by line match the string:
$myLine =~ /Date/
then i use substring funtion to get whatever is after ':'
$date=substr($line,5,8);
and so on...issue could be that length of string after : could be any number long
is there a better way of doing this then going through substring...i can see substring not working for info: as after : there is new lines and text with characters could be any number long.
thanks