Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: unix to perl questions

by Anonymous Monk
on Mar 12, 2015 at 01:12 UTC ( [id://1119720]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1119720]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found