Yeah, but what if you've misspelled a name? Shouldn't it be easy to fix those kinds of mistakes? That's why I'd recommend formatting like...
my @folk = ();
push (@folk,
"H".
"i".
"b".
"b".
"s"
);
push (@folk,
"D".
"a".
"g".
"l".
"i".
"s".
"h"
);
...etc. Of course that's also problematic if you want to edit an individual letter. So I find the style below a bit better (especially when using a modern editor like edlin). Plus it uses a more descriptive name than the bland "@folk"...
push (@Hibbs_Daglish_Schwartz_Vroom,
chr(0b1001000).
chr(0b1101001).
chr(0b1100010).
chr(0b1100010).
chr(0b1110011)
);
push (@Hibbs_Daglish_Schwartz_Vroom,
chr(0b1000100).
chr(0b1100001).
chr(0b1100111).
chr(0b1101100).
chr(0b1101001).
chr(0b1110011).
chr(0b1101000)
);
push (@Hibbs_Daglish_Schwartz_Vroom,
chr(0b1010011).
chr(0b1100011).
chr(0b1101000).
chr(0b1110111).
chr(0b1100001).
chr(0b1110010).
chr(0b1110100).
chr(0b1111010)
);
push (@Hibbs_Daglish_Schwartz_Vroom,
chr(0b1010110).
chr(0b1110010).
chr(0b1101111).
chr(0b1101111).
chr(0b1101101)
);
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|