Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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.


Comment on Re: Printing set characters from offset.
Select or Download Code

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 browsing the Monastery: (7)
As of 2014-12-26 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls