Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Filehandle in subroutine in use VRML.pm

by smittypaddler (Acolyte)
on Jul 06, 2022 at 22:25 UTC ( [id://11145316]=note: print w/replies, xml ) Need Help??


in reply to Re: Filehandle in subroutine in use VRML.pm
in thread Filehandle in subroutine in use VRML.pm

Thanks for the quick response. It will take me awhile to formulate why myprint() even exists, and what my ultimate goal is, so please give me some time. Regarding the archaic syntax in my perl programs, I'm 80 years old, and've been programming since 1965, so if we were conversing you'd probably hear some stuff like "Awesome," "Beet Feet" and "Bug out" from me. Anyway, I'll come back to this, and thanks again for the response.

Replies are listed 'Best First'.
Re^3: Filehandle in subroutine in use VRML.pm
by haukex (Archbishop) on Jul 07, 2022 at 12:24 UTC
    Regarding the archaic syntax in my perl programs, I'm 80 years old, and've been programming since 1965, so if we were conversing you'd probably hear some stuff like "Awesome," "Beet Feet" and "Bug out" from me.

    Sure, I understand, and a few of the edits I made are indeed purely stylistic (for is equivalent to foreach, dropping the parens on function calls, or running the code through perltidy), but at least the changes I named in my node above have become best practices for good reason, as explained in the links. And Use strict and warnings is quite important - your question is a good example of that and the potential of symbolic references to cause confusion and hard to diagnose bugs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found