perl programming and more
The second task for this week’s challenge is to write a script to demostrate calling a C function in perl, it can be a user-defined or a standard(built-in) C function.
I have seen implementation of this using the Inline
module but I have to be honest that I have never really tried it in perl. Never had the need to use it or atleast that’s what I thought. At the back of my mind, I knew a piece of code compiled in C would perform better compared to pure perl solution.
One of the task for this week’s challenge is to write a script to demonstrate brace expansion.
The script should take command line argument "Perl {Daily,Weekly,Monthly,Yearly} Challenge"
and should expand it and print like below:
Perl Daily Challenge
Perl Weekly Challenge
Perl Monthly Challenge
Perl Yearly Challenge