in reply to Re^3: Passing file location in a subroutine
in thread Passing file location in a subroutine
"org::item::essential" is a module of to get some parameters and the "input picture" have to get the parameters that will be assigned to $ipic1. The $(ipic) will take the $ipic1. I want to call the subroutine "onPerform" to input the "Input Picture"package alter; sub onPerform { my $nec = shift; my $ipic1 = org::item::essential($nec, "Input Picture"); my $(ipic) = $nec->locateAbsolutepath($ipic1); };
The main problem is passing the file by calling the subroutine.Please help me how to call the subroutine and passthe file location "input picture" so that it gets the parameter and get prepared for $(ipic)#!/usr/bin/perl -w use pic;#.pm file my $rapaz1 = 'C:/Users/RAPAZ/Desktop/try/pic12.jpeg'; my $rapaz = alter->onPerform(); $rapaz-> {"Input Picture"} = ($rapaz1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Passing file location in a subroutine
by Corion (Patriarch) on Oct 09, 2015 at 11:37 UTC | |
by Rapazzini (Initiate) on Oct 16, 2015 at 07:09 UTC |