I am learning PERL little by little. I have no programming background and I am having a tough time navigating through my Learn PERL in 21 days book because I get bored, so I decided to start with a task and try and work backwards. I am a windows administrator and I have a text file that I have created that I would like to parse through and output into HTML to make it look a little nicer for our execs to look at. I keep getting stuck at where to start. 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. I want to pull some data out and discard and then print some of it to an HTML file. Here is a snippet of what the data looks like from the text file
Starting XCACLS.VBS (Version: 5.2) Script at 5/1/2006 11:02:33 AM Startup directory: "G:\" Arguments Used: Filename = "*.*" /L (File: "xcacls.txt") ********************************************************************** +**** File: G:\xcacls.txt Permissions: Type Username Permissions Inheritance + Allowed BUILTIN\Administrators Full Control This Folder Onl +y Allowed \Everyone Read and Execute This Folder Onl +y Allowed NT AUTHORITY\SYSTEM Full Control This Folder Onl +y No Auditing set Owner: BUILTIN\Administrators ********************************************************************** +**** ********************************************************************** +**** Directory: G:\1500Jennilsa Permissions: Type Username Permissions Inheritance + Allowed OURDOMAIN\1500Jennilsa Modify This Folder, Sub +folde Allowed BUILTIN\Administrators Full Control This Folder, Su +bfolde Allowed \CREATOR OWNER Full Control Subfolders and +Files Allowed NT AUTHORITY\SYSTEM Full Control This Folder, Su +bfolde No Auditing set Owner: BUILTIN\Administrators ********************************************************************** +****
I would like to pull out all the stuff at the top where it talks about starting the script etc. and basically list the folder and who has access to it. So I think I would have to have an IF statement to read through the data and then pattern match looking for G:\. I feel a little overwhelmed

In reply to 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":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.