in order to get what I want
It isn't overly clear what you want. If you have a string with words separated by underscores and just want to return the last such word then you could do this:
my $row = 'We_need_feed'; my ($last) = $row =~ /[^_]*$/g; print $last;
or you could split and then pop but maybe extracting the last isn't what you want at all.
In reply to Re^3: perl system command
by hippo
in thread perl system command
by cbtshare
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |