Is there a regexp way or "better way" I only want string up to "." starting from left. thank you$ perl -le 'my @val= split(/\./,"foo.bar.aaa"); print @val[0];' foo
In reply to split...or better? by mikejones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |