When would you not use Perl for a project?
Answer / mac
1. When you are developing an application for a real time
system in which processing speed is of utmost importnace
When to use Perl
1. For large text processing
2. When application does lot of data manipulation
3. When you need fast development
4. For database loading operations
5. When shell scrits grow to become libraries
| Is This Answer Correct ? | 9 Yes | 4 No |
What is subroutine in perl?
What does 'do' statement do in perl?
Why we use CGI?
How do you turn on the perl warnings?
Which operator in perl is used for the concatenation of two strings?
package MYCALC; use Exporter; our @EXPORT = (); our @ISA = qw(Exporter); our @EXPORT_OK = qw(addition multi); our %EXPORT_TAGS = (DEFAULT => [qw(&addition)],Both => [qw(&addition & +multi)]); sub addition { return $_[0] + $_[1]; } sub multi { return $_[0] * $_[1]; } 1; Program: use strict; use warnings; my @list = qw (2 2); use Module qw(:DEFAULT); print addition(@list),"\n"; Above coding is my module MYCALC and the program which using this module, I have not exported any function using @EXPORT, but I have used the DEFAULT in %EXPORT_TAGS with the function addition, when I call this function from the main it says the error as,
You want to read command-line arguements with perl. How would you do that?
What exactly is grooving and shortening of the array?
What are the arguements we normally use for perl interpreter?
What is the main function of cookie server?
What does read () command do?
List the files in current directory sorted by size ?