Need help in building a pl to a pm

From: Roberts Mr Richard L (ROBERTSRL_at_usmc-mccs.org)
Date: 05/26/04


To: "'DBSMITH@OhioHealth.com'" <DBSMITH@OhioHealth.com>,  beginners@perl.org
Date: Wed, 26 May 2004 09:01:47 -0400

first, sorry for top post. Second, I am trying to convert my html/pm files
to oop (pm). Can anyone give me some understanding of perl modules and some
examples. Specifically to 'bless()' and a general over view. I have searched
cpan/perl monks etc.

thanks in advance
R.

-----Original Message-----
From: DBSMITH@OhioHealth.com [mailto:DBSMITH@OhioHealth.com]
Sent: Tuesday, May 25, 2004 2:34 PM
To: beginners@perl.org
Subject: Re: array population from system app call

ok so now I can get all elements printed using

        my @ftapes = ( );
        my @ftapes = `evmvol -w label_state=3|grep barcode`;
 
                foreach $_ (@ftapes) {
                print $_ , "\n";
        }

so now I want to use multidimensional arrays using print $ftapes[0,1]
does print $ftapes [0,1] mean print element 0 and element 1 or address 0,1
am I confusing a normal array with a MDarray?

where

[0] is a subscript address so to get the first element I would say print
$ftapes [0]

thanks

Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams



Relevant Pages

  • Re: SOLVED: How do I scope a variable if the variable name contains a variable?
    ... Either I have it right but am expressing it poorly, ... so I wonder if my understanding is all wrong. ... table so you can't get access to them via symrefs. ... DF> You suggested using a hash INSTEAD of an array, ...
    (comp.lang.perl.misc)
  • Re: homework
    ... library should contain a function that takes in an array of numbers (of ... would suggest you start looking in perldoc perlop and perldoc perlfunc ... for operators that read from files (since STDIN is just a special ... very old way of naming perl modules. ...
    (perl.beginners)
  • Re: Discovering variable types...
    ... of people that are used to OOP programming really don't understand modular ... but also gray OOP should be avoided. ... Yes it can (syntax wise), however it wouldn't have the same meaning. ... It is slow because it is a single array of pointers internally. ...
    (comp.lang.pascal.delphi.misc)
  • Need help understanding an Array push
    ... complex script that generates some reports based on some text input ... Need help understanding what this section of Perl code does: ... new arrangement of the data pulled out of the other array. ...
    (comp.lang.perl.misc)
  • Re: Best Coding Practice
    ... | products in an array. ... I'm by no means saying you're wrong in claiming that OOP ... open their eyes to potential problems they will most assuredly pay for down ... To Steve: I did feel a bit attacked by your previous posts, ...
    (comp.lang.php)