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: [digioleg54] Strange line in the code and not declared variable: Edit Log



FishMonger
Veteran / Moderator

Apr 20, 2017, 12:52 PM


Views: 2222
Re: [digioleg54] Strange line in the code and not declared variable

DON'T assign $: like that. $: is one of Perl's built-in global vars.

Is $short_desc a shell var or is it a perl var which was declared and assigned earlier in your script?

Is $f_pin supposed to be a shell var or a perl var?

If it's a perl var, then you need to declare it with the my keyword.


(This post was edited by FishMonger on Apr 20, 2017, 12:52 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Apr 20, 2017, 12:52 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