Basically, I second smiffy's recommendation, but would use a 4 character TAB ;-).

While reading your example, I find the double backslashes more offending. It is IMHO less readable, esp. as the double backslash has some meaning for similar looking UNC paths.
Since you do not interpolate yet, you could use single quotes instead of the interpolating double quotes, which saves you 9 characters for the given example and the key looks more natural too. Together with string concatenation, you can break the lines at semantic borders:

process_key_r16a_type ($partition,$mountpoint,"software", 'Microsoft\Windows NT\CurrentVersion' .'\Terminal Server\Install' .'\Software\Microsoft\Windows\CurrentVersion' .'\RunOnceEx' );
I guess, the that 'Microsoft\Windows NT\CurrentVersion\' is used quite often, so it could be placed into a short variable or constant, e.g. $MS_NT_CUR:
process_key_r16a_type ($partition,$mountpoint,"software", $MS_NT_CUR .'Terminal Server\Install' .'\Software\Microsoft\Windows\CurrentVersion' .'\RunOnceEx' );
You could modify process_key_r16a_type(...) or write a wrapper that concatenates surplus arguments into a key or alternatively takes an anonymous array that visually groups the key components.
process_key_r16a_type_arefflavour ($partition,$mountpoint,"software", [ 'Microsoft\Windows NT\CurrentVersion', '\Terminal Server\Install', '\Software\Microsoft\Windows\CurrentVersion', '\RunOnceEx' ] );
Depends on taste..., however perltidy might rip that lines apart (untested)...

In reply to Re: need advice: Perl code layout, long line lengths by Perlbotics
in thread need advice: Perl code layout, long line lengths by resistance

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.