jesus has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I really need your help for my assignment. I got 4 variables extracted from RSS, for example:
$title = "Shooter of US teen appears in court"; $author = "Stephanie Kennedy"; $date = "Fri, 13 Apr 2012 06:00:16"; $content = "A Hispanic neighbourhood watch volunteer, charged with sec +ond-degree murder over the shooting death of an unarmed black teenage +r in the United States, has appeared briefly in court for the first t +ime.";
And I'd like the output (just on the terminal, not into a file) to be like this:
How can I do that? Please, help me! Thanks!--------------------------------------------------------------------- | TITLE | Shooter of US teen appears in court | --------------------------------------------------------------------- | AUTHOR | Stephanie Kennedy | --------------------------------------------------------------------- | DATE | Fri, 13 Apr 2012 06:00:16 | --------------------------------------------------------------------- | CONTENT | A Hispanic neighbourhood watch volunteer, charged with | | | second-degree murder over the shooting death of an | | | unarmed black teenager in the United States, has | | | appeared briefly in court for the first time. | ---------------------------------------------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Neat format and word wrap
by GrandFather (Saint) on Apr 13, 2012 at 00:08 UTC | |
by bobdabuilda (Beadle) on Apr 13, 2012 at 00:53 UTC | |
by ww (Archbishop) on Apr 13, 2012 at 02:09 UTC | |
by Your Mother (Archbishop) on Apr 13, 2012 at 18:14 UTC | |
|
Re: Neat format and word wrap
by clueless newbie (Curate) on Apr 13, 2012 at 14:41 UTC | |
|
Re: Neat format and word wrap
by Anonymous Monk on Apr 13, 2012 at 02:30 UTC | |
|
Re: Neat format and word wrap
by MidLifeXis (Monsignor) on Apr 13, 2012 at 12:22 UTC | |
|
Re: Neat format and word wrap
by trizen (Hermit) on Apr 13, 2012 at 14:29 UTC | |
|
Re: Neat format and word wrap
by rovf (Priest) on Apr 13, 2012 at 15:01 UTC | |
|
Re: Neat format and word wrap
by Anonymous Monk on Apr 13, 2012 at 17:19 UTC |