in reply to Sub Routine Malfunction

Minor but important note: the shebang at the top of your script needs to be

#!/usr/bin/perl

instead of the '#usr/bin/perl' or '#!usr/bin/perl' as you have it in the above scripts. Your version will work in, say, Windows (which ignores the shebang, although it honors any switches present on the shebang line), but would fail on a Unix box.


-- 
Human history becomes more and more a race between education and catastrophe. -- HG Wells

Replies are listed 'Best First'.
Re^2: Sub Routine Malfunction
by koolgirl (Hermit) on Aug 29, 2008 at 04:37 UTC
    Yes, the second one had it correctly, the first was a mistake, I'm on linux. Thanks for the input, though..it's always good to know the details you've missed :)