What is the difference between for & foreach, exec &
system?
Answer Posted / mvamsi
Hi Ramesh, You mean to say that we can't capture output of
the program by using exec function. But its working in my PC.
my $ls = exec('ls');
Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
You want to print the contents of an entire array. How would you do that?
What are the logical operators used for small scale operations? Explain them briefly.
What is the difference between use and require in perl?
What does delete function do in perl?
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
What is the easiest way to download the contents of a URL with Perl?
Explain the arguments for perl interpreter.
What are the steps involved when the cgi program starts running?
What is a chop() function in perl?
List the prefix dereferencer in Perl.
How do you give functions private variables that retain their values between calls?
What are the different string manipulation operators in perl?
What are different data types that perl supports. Elaborate on them.
How to concatenate strings in perl?
How to read multi lines from a file in perl?