[wellylug] Programming Question
Grant McLean
grant at mclean.net.nz
Sun Nov 30 08:04:00 NZDT 2003
Jethro Carr wrote:
> How can I use a variable for the input, ie:
>
> system("touch <variable>");
In Perl:
system("touch $variable");
Seriously, for the stage you're at, I think Perl would be an excellent
choice of language. Unlike 'C', you don't have to bother with the
compilation phase - that's done for you when you run the program. You
also don't have to worry about allocating and freeing memory which is
probably the biggest pain in C.
Far too much open source software is written in C or C++ simply because
of silly biases against 'scripting' languages.
I'm not suggesting there's no place for C. But restricting its use to
low-level and performance critical routines, then tying them together
with a higher level language can offer huge benefits in productivity,
reliability and security.
Regards
Grant
More information about the wellylug
mailing list