use warnings; use strict; my $string = "ATATTTATATTAT"; my $removed = substr($string, 0, 3); $string = substr($string, 3); print "$string $removed\n"; __END__ TTTATATTAT ATA
UPDATE: Fixed bug. Thanks AnomalousMonk
In reply to Re: Extract string after removing the substring
by toolic
in thread Extract string after removing the substring
by viktor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |