I am very new to perl. I am aware of "s///g". But I dont understand what you did here. Can you explain this
$str =~ s/(.*)\|.*/$1/;If I replace $1 with anything(suppose Perl) It's printing only perl. Say about $1 clearly. Thank you
In reply to Re^2: how to remove a string from end of a line
by ravi45722
in thread how to remove a string from end of a line
by rpinnam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |