Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Printing set characters from offset.

by ww (Archbishop)
on Sep 23, 2013 at 17:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1055355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found