Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Printing set characters from offset.

by hippo (Curate)
on Sep 23, 2013 at 14:57 UTC ( #1055304=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Printing set characters from offset.
in thread Printing set characters from offset.

That isn't what the "and" operator does. If you want to print 2 substrings, call substr twice, eg:

 print substr ($lines, $o1, $l1) . substr ($lines, $o2, $l2);


Comment on Re^3: Printing set characters from offset.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-26 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (171 votes), past polls