Jonathan Musto wrote:
>
> Hi there,
Hello,
> I've got an array of lines, split up by spaces as follows:
>
> Sun-router rack1.2 leeds
> Cisco-router rack3.2 skem
> Sun-switch rack2.3 manchester
> etc.....
>
> How can i add the following to the end of each line, P *NULL*?... e.g.
>
> Sun-router rack1.2 leeds P *NULL*
> Cisco-router rack3.2 skem P *NULL*
> Sun-switch rack2.3 manchester P *NULL*
>
> Any help would be much appreciated, thanks in advance!
my @array = (
'Sun-router rack1.2 leeds',
'Cisco-router rack3.2 skem',
'Sun-switch rack2.3 manchester',
);
$_ .= ' P *NULL*' for @array;
print "$_\n" for @array;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]