parse hash to module

2005-12-18 Thread Ditlev, Unix Consulting
Hi There, I have some problems undestanding how to parse a hash to module of my own. I have this hash %person : $person{$Name}{Name} = "xxx"; $person{$Name}{Id} = ; @( $person{$Name} {Friends} ) But what's the correct method for parsing this hash to my module ??? I try something like mymodu

Re: parse hash to module

2005-12-19 Thread Ditlev, Unix Consulting
"JupiterHost.Net" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Ditlev, Unix Consulting wrote: >> Hi There, > > Hello, > >> I have some problems undestanding how to parse a hash to module of my >> own. >> >>

Re: parse hash to module

2005-12-22 Thread Ditlev, Unix Consulting
"JupiterHost.Net" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > >>>You can do either but a refernce is more efficient: >> >> Maybe I should use a reference as you suggest now Iam using ... >> >> MyModule::function(%person) >> >> and in my function : >> my %person = @_; >> >> F

Re: Array problem

2006-01-23 Thread Ditlev, Unix Consulting
Is this what you wan't ? > open INPUT,"<$ARGV[0]"; > while ($line=){ >push (@array,$line); > } >foreach $i(@array){ >print $i; > } "Andrej Kastrin" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] >I wrote simple script, which have to concatenate multiple lines