Jan 15, 2015, 5:43 AM
Post #1 of 2
Perl 5.8.8 on Linux
Print with auto indent
This is something I've never done but would come in handy for debugging. I'd like to print a statement but with auto indent for long lines. Thus I'd like to print "Stored key: with long data" and the auto indent would be after the colon and space. I.e. the auto ident would align with the space after the colon but I wouldn't have to do any manual alignment in the program itself.
Is this even possible with Perl?
Stored key: very long line blah blah blah say ignore extra spaces here
wrap starts here and goes from here this is auto indent