What is stdin in perl?
Answer / Shiv Ram Krishanan
stdin (standard input) in Perl is an input stream that provides data to the program. By default, it reads from the keyboard when a script is run on the command line.
| Is This Answer Correct ? | 0 Yes | 0 No |
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,
What are arrays in perl?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
How interpreter is used in perl?
What is the purpose of redo statement?
You want to open and read data files with perl. How would you do that?
What is the Common Gateway Interface?
Which functions in perl allows you to include a module file.
What is perl shift array function?
What is the difference between die and exit in perl?
What is the difference between exec and system?
Can any1 tell me 2 write the script using perl script 2 looking at a log file 2 see wheather the test has passed or not.