Created
June 19, 2023 13:56
-
-
Save earnhardt3rd/845e13c8215712bc1ce8593f175b817b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'getopts.pl'; | |
| Getopts('m:d:t'); | |
| my $MODE = uc($opt_m) || ""; | |
| my $DEBUG = $opt_d || 0; | |
| if (defined $opt_t) { my %TEST = &fromARRAY_SINGLE_W_TITLE();} | |
| 1; | |
| sub fromARRAY_SINGLE_W_TITLE { | |
| my @ARRAY_S = @_; | |
| my $single; | |
| if (scalar(@ARRAY_S) <= 1) {return;} | |
| my $maxi=0; | |
| my $len = length(scalar(@ARRAY_S)); | |
| print "$ARRAY_S[0]\n"; | |
| for (my $i=1;$i<=scalar(@ARRAY_S)-1 ;$i++) { | |
| printf " %-${len}s %-s\n",$i,$ARRAY_S[$i]; | |
| $maxi=$i; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment