Unfortunately, my long-term archives are in storage, but I can at least describe the nonsense I wrote.

Not long before I started my career path at an Internet Provider in 2000, I was more of an unscrupulous individual with low ethics and had a full-blown wifi hacking setup in my vehicle that I'd use to scan and crack into networks in the Bay St, Toronto, Canada area.

At this time, I was using FreeBSD as my Operating System, with ipfw as my firewall on my "war-driving" equipment.

A few weeks after starting at the ISP, I came across a "Learn Perl in 21 days" book, and having known basic C/C++ at the time, I picked that up quick and figured 'man, this scripting thing would make it easy to automate stuff'.

What'd I do? Wrote an exceptionally hacky wrapper around the ipfw binary so that I could use quick-keys on my keyboard to automate rule sets within the firewall in an instant. It was filled with stuff like:

# do not change these lines unless you know what you're doing!!!

...even though the lines (looking back) did nothing of real importance, and even a low-level intermediate Perl hacker would laugh at.

I also remember using C-style for() loops, using long lists of global variables, and as I'm sure everyone has, tried to use variables as variable names.

Good times. I'll forever be appreciative for that odd book on the shelf I picked up. I'm thankful for the lessons I've learned, the things I've picked up, and the mistakes that I'll still make that I'll inevitably learn from.

Congratulations on the kick up to Chancellor, haukex. It's very well deserved.

-stevieb


In reply to Re: What does your old Perl code look like? by stevieb
in thread What does your old Perl code look like? by haukex

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.