Mich wrote:
alex wrote:
mic wrote:
I am now learning C++. I wanted to know if there was another simpler language I could learn as well as C++. The reason I say this is because C++ takes a longer time to learn. If you know of a suitable language your reply would be helpfull. Thank you.
M.J.L.C
You could try Perl, its a nice language and its easier than c++. Here is a good book:
http://iis1.cps.unizar.es/Oreilly/perl/learn/index.htmI was checking out this topic and I checked out the link, but I have one question: (actually, a few)
What are you supposed to do with Perl?
Where do you type it out so it'll work?
How do you remember how to do it?
Perl is a computer programming language. You tell it what you want to do by typing up source code. You remember how to do it because you just do. Here is an example of some perl code I'm working on:
Code:
#!/usr/bin/perl
use Data::Dumper;
while (<>) {
$type="mmlong" if (/RANK/);
$type="mmtxt" if (/={9,}/);
$type="txt" if (/METER/);
#this doesn't work currently:
$event=$_ if (/(\S+)(meter|mile|pole|high\sjump|triple|shot|) (\S+)/i);
$sex="men" if /(boys|men)/i ;
$sex="women" if /(girls|women)/i ;
@array = /(\d+) +(\d+) +(.+), +(\w+) +(\d+) +([\w\s]+) +(\S+) +(\S+) +(\d+)/ if $type eq "mmlong";
@array = /(\d+)\. +(\w+) +(.+), +([\w\s]+) +(\S+)/ if $type eq "txt";
@array = /(\d+) +(\w+), +(.+) +([\w\s]+) +(\S+) +(\S+)/ if $type eq "mmtxt";
push(@array, $sex);
#push(@array, $event);
print Dumper(@array);
}