2016-10-04 14:55 GMT+03:00 Jaren Peich <burkol...@gmail.com>:
> Hi,
>

...

> %pmid=%{ $_[0] };\
> @midcont = values %pmid;\

Since $_[0] is a string which contains values separated by newlines, I
would recommend to replace the previous two lines with the following
line:

@midcont = split(/\n/, $_[0]);

>
> I don´t know why i can´t access to the %hashmids that I copied before and
> added as a parameter. How can i reference it?

$_[0] refers to the first input parameter of the function, but since
it holds a string value, you have to split it into parts, in order to
create an array from it. Since the values inside $_[0] are separated
by newlines, you have to use the newline character as a separator
during splitting.

hope this helps,
risto

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to