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
what are prefix dereferencer and list them out?
What is 'rollback' command in perl?
How can memory be managed in Perl?
What are some of the key features of objects in perl?
Why do we use "use strict" in perl?
How to compare two strings in perl?
What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?
Why to use perl?
What is “grep” function in perl?
How to close a file in perl?
What is the usage of -i and 0s options?
What is cpan in perl?
what are the two ways to get private values inside a subroutine or block?
Which guidelines by Perl modules must be followed?
How do I replace every character in a file with a comma?