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
"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.
>>
>>
"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
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