tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Spalding, Stephen" <SSpaldin () mem-ins ! com>
To: tru64-unix-managers
Subject: SUMMARY: Perl
Date: Thu, 23 Jul 1998 21:06:58 +0000	[thread overview]
Message-ID: <96078715811900.tru64-unix-managers.marc@archive.invalid> (raw)

My original posting is below. I was having difficulty following the perl
manual that I have, but realized that I was trying to print a value in the
array that I have that did not exist. Here is what I came up with:

#!/bin/perl

eval 'use Oraperl; 1';

print "begin\n";

$name1 = 'first';
$value1 = 'Steve';
$name2 = 'last';
$value2 = 'Spalding';
@POST = (
                        [ "$name1", "$value1" ],
                        [ "$name2", "$value2" ],
        );

print "Printing the array\n";
print "\n";
print $POST[0][0];
print "\n";
print $POST[0][1];
print "\n";
print $POST[1][0];
print "\n";
print $POST[1][1];
print "\n";
print "\n";

exit 0;
> ----------
> From: 	Spalding, Stephen[SMTP:SSpaldin@mem-ins.com]
> Sent: 	Thursday, July 23, 1998 3:50 PM
> To: 	'alpha-osf-managers@ornl.gov'
> Subject: 	Perl
> 
> Does anyone have any examples of how to do multi-dimensional arrays in
> perl?
> 
> Thanks!
> 
> 
> Stephen Spalding
> Associate System Administrator
> Missouri Employers Mutual Insurance
> sspaldin@mem-ins.com
> 1000 West Nifong
> Columbia, MO 65203
> (573) 499 - 4230
> (800) 442 - 0590
> fax (573) 499 - 4310
> 

                 reply	other threads:[~1998-07-23 21:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox