Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Beginner project suggestions

by jbush (Initiate)
on Apr 29, 2005 at 15:40 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found