Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: help with basic script

by thanos1983 (Parson)
on May 28, 2019 at 15:08 UTC ( [id://11100643]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl test.pl 
    syntax error at test.pl line 17, near "get_date;"
    Execution of test.pl aborted due to compilation errors.
    
  2. or download this
    $ perl test.pl 
    Hello World!
    ...
    SA - YEAR: 2019, MONTH: 5, DAY: 77
    
             END ing script test.pl
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    ($year, $month, $day) = get_date;
    print "SA - YEAR: $year, MONTH: $month, DAY: $day\n";
    print "\n\t\t END ing script $0\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-06-24 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.