G'day amparida,
Firstly, PerlMonks is not a code-writing service! It is not OK to post a spec and just expect someone here to do your work for you: see Do Your Own Work in "How (Not) To Ask A Question".
The tools you need for this task may depend on context (which you haven't provided). Take a look at index, to locate instances of 47 within your string, and substr to capture the substring you want. Another option would be to use a regular expression to capture the substrings: see "perlretut - Perl regular expressions tutorial".
I note you say "10 characters after 47", but the "Output:" examples have 15 characters in each instance: you'll need to determine which is correct.
If you subsequently run into difficulties, feel free to ask here, but ensure you follow the guidelines in "How do I post a question effectively?".
-- Ken
In reply to Re: print number of characters after specific character
by kcott
in thread print number of characters after specific character
by amparida
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |