So I had a post

by stephen mcgroarty 8/7/2008 10:51:51 PM

So I had a blog post all done up and good to go, when my computer blue screened. It is my own fault, I just plugged a hard drive into it so that I could work from it today instead of killing laptop batteries. I just cant remember what I had typed out.

So for that you get nothing other then my first real perl script

#!/usr/bin/perl

use strict;
use warnings;

my $word = "Times";
my $number = 12;

print "$number $word $number is ", $number * $number "\n";

yup that's it.Simple, to the point, and does something. It is a begining and that is the important part. I am not trying to be a perl expert or anything, I am just trying to get the basics of it, after all these years.

I think I am also going to work on some powershell scripting as well sooner or later.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

General

Related posts

Comments

8/13/2008 12:52:36 PM

Sam Rodgers

#!/bin/sh
word=Times
number=12
echo "$number $word $number is" `echo "$number $number*p" | dc`

Sam Rodgers us

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

11/20/2008 12:39:35 AM

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen
Hacked by Stephen McGroarty
Content © Stephen McGroarty


About the author

Stephen Mcgroarty - Avatar Stephen McGroarty

I am a Microsoft Certified Professional with Windows 2003 Server. I have a firm understanding of Linux, Windows, and everything needed for both workstation and servers.

E-mail me Send mail

Calendar

<<  November 2008  >>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

View posts in large calendar

Recent posts

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008