Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Printing set characters from offset.

by ww (Bishop)
on Sep 23, 2013 at 17:55 UTC ( #1055355=note: print w/replies, xml ) Need Help??


in reply to Printing set characters from offset.

Perhaps you meant to code you solution like this:
#!/usr/bin/perl use 5.016; use warnings; # 1055294 my $line = ' j1000010017 6790194100109201301092013THIS TO BE PRINTED +M PW09-3PY248005BIK00 '; say substr( $line, 38, 20); say substr( $line, 68, 3); =head EXECUTION C:\>D:\_wo\1055294.pl THIS TO BE PRINTED 248 =cut

Explanation: perldoc -f substr.

Because you didn't RTFM, you owe apologies to all those electrons which were inconvenienced by the creation of this post.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2016-10-01 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (3 votes). Check out past polls.