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: [BillKSmith] Problem printing return value from a subroutine: Edit Log



zing
Novice

Oct 4, 2012, 10:38 PM


Views: 3188
Re: [BillKSmith] Problem printing return value from a subroutine

Bill , after commenting

Code
#print Dumper @qw;

I got this
---------OUTPUT----------

Code
component 2 = e d 
component 1 = c a b
b c a


Clearly since, "b c a" is a subset of component1(c a b) therefore it gets printed. But Bill I just want to save this "b c a" in a suitable array/variable etc. As I need it for further processing.That's why I want to save this output,rather than just getting it printed.

Also there would be a case for example consider a component 3,which has these points= "a c d e". Then row 2nd and 3rd of "DATA" are a subset of these points.So for component3 I'm expecting this output

Code
component 3 = a c d e 
induced= a c d
d e b

I want to save these induced values in a suitable data structure as I need to further process them.


(This post was edited by zing on Oct 4, 2012, 11:20 PM)


Edit Log:
Post edited by zing (Novice) on Oct 4, 2012, 11:18 PM
Post edited by zing (Novice) on Oct 4, 2012, 11:19 PM
Post edited by zing (Novice) on Oct 4, 2012, 11:19 PM
Post edited by zing (Novice) on Oct 4, 2012, 11:19 PM
Post edited by zing (Novice) on Oct 4, 2012, 11:20 PM


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

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