in reply to Re^2: unix to perl questions
in thread unix to perl questions

The page Use strict and warnings explains how to get your program working under strict. It sounds like in your case the best way to start your scripts would be

#!/usr/local/bin/perl use warnings; use strict;

(The -w command line switch is not needed if you use warnings;.)

If you get errors, please post the exact error messages here; see How do I post a question effectively?

Replies are listed 'Best First'.
Re^4: unix to perl questions
by deyaneria (Acolyte) on Mar 12, 2015 at 03:01 UTC
    I did try it again to recreate the error I got. After my first script I had to download somthing for UBuntu. Perhaps it fixed the error or most likely I messed something up when trying to use: use warning; and use strict; before.
Re^4: unix to perl questions
by deyaneria (Acolyte) on Mar 12, 2015 at 02:48 UTC

    I did do that before when writing a simple hello world script, and it gave me an error on a perfectly good running script. I haven't tried it since I had to add patch to Ubuntu for Perl. However I will give it a shot again. That is why I used the command line script instead.