dhendrix has asked for the wisdom of the Perl Monks concerning the following question:
.use strict; use warnings; my $boss_first_name = "Penelope"; my $boss_last_name = "Creighton-Ward"; my $butler_first_name = "Aloysius"; my $butler_last_name = "Parker"; my $field_width = 15; print '|', ' 'x$field_width, '|', ' 'x$field_width, "|\n";
How can I change this program so it will print out a line containing the boss's first and last names in the first field and the butler's first and last names in the second field? I need the output to look like this
| | | |Penelope |Aloysius Parker| |Creighton-Ward | |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print in box syntax
by Corion (Patriarch) on Jul 07, 2015 at 13:33 UTC | |
|
Re: Print in box syntax
by stevieb (Canon) on Jul 07, 2015 at 13:30 UTC | |
by dhendrix (Initiate) on Jul 07, 2015 at 18:00 UTC | |
by sn1987a (Curate) on Jul 07, 2015 at 18:28 UTC | |
by dhendrix (Initiate) on Jul 07, 2015 at 18:41 UTC | |
|
Re: Print in box syntax
by BillKSmith (Monsignor) on Jul 07, 2015 at 14:43 UTC | |
|
Re: Print in box syntax
by Laurent_R (Canon) on Jul 07, 2015 at 14:08 UTC | |
|
Re: Print in box syntax
by Monk::Thomas (Friar) on Jul 07, 2015 at 22:00 UTC | |
by soonix (Chancellor) on Jul 08, 2015 at 22:06 UTC | |
|
Re: Print in box syntax
by 1nickt (Canon) on Jul 07, 2015 at 18:21 UTC |