Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Beginner project suggestions

by jbush (Initiate)
on Apr 29, 2005 at 15:40 UTC ( #452642=note: print w/replies, xml ) Need Help??


in reply to Re: Beginner project suggestions
in thread Beginner project suggestions

Thanks all for the replies. I do have some background in programming, so most of the basics seem to fit right in with perl very well. Since I last posted, I've had a little bit of time to sit down and write up some code... Below is what I have so far.. now to add the SSH code.
open(FWS,"firewalls.txt") || die "Unable to load firewall list: $!"; while (<FWS>) { chomp; print $_; open(CMDS,"commands.txt") || die "Unable to load commands list: +$!"; while (<CMDS>) { chomp; print $_; } close CMDS; } close FWS;

Replies are listed 'Best First'.
Re^3: Beginner project suggestions
by Grygonos (Chaplain) on Apr 29, 2005 at 17:40 UTC

    Just a FYI (not that it's better to do this). print defaults to $_ so sayin print $_ is the same as saying print

    It makes it more cryptic really, so it's not neccessarily better to do that.. just a FYI

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-03-29 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (70 votes). Check out past polls.

    Notices?