I want a general solution as it should work for any packages. Thankssub GetObject('Employee', $employeeData) { use Employee; $emp = new Employee; $emp.name = $employeeData->{name}; $emp.dept = $employeeData->{dept}; return $emp; }
In reply to Help creating a function by varghees
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |