test
Page 1 of 1 [ 12 posts ]
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
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.htm
_________________
Follow me on Twitter: http://twitter.com/alexplank
FB fan page: http://fb.me/alexplank0
Personal FB: http://fb.me/alexplank1
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
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.htm
I 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?
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
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.htm
I 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);
}
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);
}
_________________
Follow me on Twitter: http://twitter.com/alexplank
FB fan page: http://fb.me/alexplank0
Personal FB: http://fb.me/alexplank1
alex wrote:
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
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.htm
I 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);
}
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);
}
What will it do and where do you use Perl? Like, do you use it on the internet, in certain programs, etc.?
Mich wrote:
What will it do and where do you use Perl? Like, do you use it on the internet, in certain programs, etc.?
It will do ANYTHING you tell it to do. You can use it anywhere you like if you have the interpereter.
_________________
Follow me on Twitter: http://twitter.com/alexplank
FB fan page: http://fb.me/alexplank0
Personal FB: http://fb.me/alexplank1
alex wrote:
Mich wrote:
What will it do and where do you use Perl? Like, do you use it on the internet, in certain programs, etc.?
It will do ANYTHING you tell it to do. You can use it anywhere you like if you have the interpereter.
Where do you get it?
By "it," I mean the interpreter.
PHP might also be worth a look. Syntacticly, it has many similarities to C++ but is much more forgiving. WP appears to use it extensively.
www.php.net
