CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [FishMonger] Strange line in the code and not declared variable: Edit Log



digioleg54
User

Apr 20, 2017, 1:06 PM


Views: 1854
Re: [FishMonger] Strange line in the code and not declared variable

I just make shell to Perl conversion, where shell starting Perl. And this was existing on UNIX Perl scripts. Now I make them work as CGI on apache. That is why I am looking to convert them. $short_desk was declared and created in the other Perl script , which is using sub from package get_pin.

Code
$short_desc= ctm="14:46:17" pid="13024" sleep4="20" until="22:00:00" 

if ($short_desc=~/(sleep4)|(sleep[\s\-]for)|(until)/) {
my ($:)=($ENV{LOG_HOME}||$ENV{OUTPUT_DIR}||".")."/".uc($pid).".PIN";
`echo $short_desc > $f_pin`;
}


Both are Perl variables, but $f_pin was never declared, I checked it. May be in our packages, I will double check it now

What should I use instead?

Thanks


(This post was edited by digioleg54 on Apr 20, 2017, 1:08 PM)


Edit Log:
Post edited by digioleg54 (User) on Apr 20, 2017, 1:08 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives