03-21-2019, 09:51 PM
Hi.
I would suggest to not start learning with Assembly, Cobol, Java.
On the other hand, I would suggest perl as you can start right away from any Linux or even Mac computer.
You may try at the prompt:
perl -e 'print "HelloWorld$/"'
If you want more action then you can write a file with "pl" extension such as "hello.pl" with the following code:
#!/usr/bin/perl -w
print "The process number of this script running is: $$ $/";
print "The operating system is $^O$/";
print "The local time is: ".localtime().$/;
###output###
The process number of this script running is: 20863
The operating system is linux
The local time is: Thu Mar 21 15:50:29 2019
I would suggest to not start learning with Assembly, Cobol, Java.
On the other hand, I would suggest perl as you can start right away from any Linux or even Mac computer.
You may try at the prompt:
perl -e 'print "HelloWorld$/"'
If you want more action then you can write a file with "pl" extension such as "hello.pl" with the following code:
#!/usr/bin/perl -w
print "The process number of this script running is: $$ $/";
print "The operating system is $^O$/";
print "The local time is: ".localtime().$/;
###output###
The process number of this script running is: 20863
The operating system is linux
The local time is: Thu Mar 21 15:50:29 2019