CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Laurent_R] Problem printing return value from a subroutine: Edit Log



zing
Novice

Oct 4, 2012, 8:49 AM


Views: 3595
Re: [Laurent_R] Problem printing return value from a subroutine

Laurent maybe I couldnt explain properly.Let me explain what is wanted.Consider for example component 2. It has two vertices e,d. Now I want to see if any of the rows from "DATA" is a subset of these points.Now since each of the row of "DATA" has 3 vertices/points,therefore clearly for component 2 there isnt any induced line from DATA. Therefore there should be anything to print for the subroutine "induced" for this case.

But for component 1,which has vertices as = c,a,b; the first line of "DATA" which is "b c a" gets induced.

Similarly if component=a,b,c,d ; then first two rows of DATA get induced ,as they are both the subset of the component.
So what i want now is that,I want to save this induced vertices in a variable/array etc. AS i need to do further processing on this induced part.


(This post was edited by zing on Oct 4, 2012, 9:02 AM)


Edit Log:
Post edited by zing (Novice) on Oct 4, 2012, 8:51 AM
Post edited by zing (Novice) on Oct 4, 2012, 8:52 AM
Post edited by zing (Novice) on Oct 4, 2012, 9:02 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives