Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Getting Started

by rnewsham (Chaplain)
on Apr 01, 2013 at 07:01 UTC ( #1026432=note: print w/replies, xml ) Need Help??

in reply to Getting Started

As everyone has said working through the books and example exercises is the best place to start. As you work through the examples try to relate them to something you are familiar with. If you can try to relate them to how you could use them in your own area of interest, you will find them much more enjoyable and easier to grasp.

When you have the basics try creating your own simple networking scripts. You could try creating a simple ping script, open a connection and communicate with a remote server, try SNMP to one of your switches. This may seem daunting at first, but use cpan modules and look at the examples in their documentation, you will see its not that scary. Don't worry at this stage about creating something new, re-inventing the wheel is a great way to learn as you can compare your solution to others. As you create these simple scripts you should gain a better understanding of how perl handles networking tasks. This should help you start to form ideas of how to solve problems you encounter and automate simple tasks.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026432]
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?
[james28909]: i have tried with && and and and have tried to rearrange the functions as well to no avail

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-05-20 18:40 GMT
Find Nodes?
    Voting Booth?