'it didn't work' isn't very descriptive and doesn't tell us anything useful.
But, as I have to guess, I'd say it's that the pattern in $last is too general, it will match not only the end of your block but also the end of struct m1.
In reply to Re: I want to write a function, you call it ,it will return one matched record each time!
by RichardK
in thread I want to write a function, you call it ,it will return one matched record each time!
by dwslovedh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |