Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Script stopped working...

by gentoobob (Novice)
on Mar 18, 2018 at 17:25 UTC ( #1211201=note: print w/replies, xml ) Need Help??


in reply to Re: Script stopped working...
in thread Script stopped working...

Yes. Like I was telling NetWalla I do not want to run bad code, especially when I'm purely amateur at Perl scripting. I will definitely look over everything in more detail Monday morning. I really appreciate your help and will be looking into more resources and learning tools. I kind of wondered if something had changed in one of the modules. Makes sense. Thank you so much again. I've been beating my head in for about 2 weeks and a lot of hours. haha

Replies are listed 'Best First'.
Re^3: Script stopped working...
by Marshall (Canon) on Mar 18, 2018 at 19:38 UTC
    As compared with the average complete amatuer question, you get an A+++.
    Your question was clear and it was immediately obvious to me and others that you have some brain cells that are working hard. PerlMonks is a great place to learn, but this only works if you also work. You are working hard and I figure that the result will be great!

    I think you are very close to "working code".
    There are some fine points to be dealt with and some obvious things like "don't push when you can print!". The code creates an array of strings and then later the code loops over that array to print the strings. No need to do that.. just barf it out right away (e.g. print)

      lol. Well thanks! I've taken programming classes in college (Java and VB), I've also read several Python books on my own and I do write small scripts for automation in Python since I'm a Network Engineer but nothing as complex as this Perl script you saw from an ex-coworker who no longer works there. My python scripts are pretty much "SSH into a switches or routers, get info or push commands". Maybe read from a file, etc. Anyways...diving into Perl was a little odd for me due to the ->, =>, @ symbols. Just trying to piece it together. I will definitely be back on this site to read the learning documents. I appreciate it.

        Senior Internet Network Engineer here who began programming Perl because of that job, so welcome! When I first came to Perlmonks, I stated vehemently "I'm not a programmer!". Heh. That didn't last a long time.

        I see you've got several responses, so come Monday when you're back at work, feel free to post back here on this thread or start another if necessary.

        Bit of a warm place in my heart for neteng's who get stuck in the throws of things ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2020-11-27 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?