Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
From what I can tell I need to start with open (XCACLS, "xcacls.txt") or die "Cant open file: $!\n"; But then I get stuck.

Okay, you're opening xcacls.txt for input. You can then read lines out of it with the <> operator, thusly:

$line = <XCACLS>

You probably also want to open a file for output:

open HTML, '>', "xcacls.html" or die "Cannot write xcacls.html: $!\n";

The best advice anyone has given you is to ditch the 21-Days book. The worst computer technical book I've ever read, and I've read some pretty lousy ones, was from that series (although it was the VB one, not the Perl one). In my experience, even "for Dummies" books are better than "... in 21 Days" books, but really you probably want to get an O'Reilly book, or use the online documentation, or both. Perlmonks is also a great resource, when you have specific questions or problems.

And yes, having a project to work on is a good way to learn a programming language. Each time you learn some new feature of the language, you can maybe apply it to your project, which gives you a feeling of progress. Extra bonus points if the project is a fun project, but any project at all is better than having nothing particular in mind.


Sanity? Oh, yeah, I've got all kinds of sanity. In fact, I've developed whole new kinds of sanity. Why, I've got so much sanity it's driving me crazy.

In reply to Re: PERL newbie Cant figure out where to start by jonadab
in thread PERL newbie Cant figure out where to start by jwashburn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (None)
    As of 2024-04-25 01:33 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found