What is stdin in perl?



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

Post New Answer

More CGI Perl Interview Questions

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,

1 Answers  


What are arrays in perl?

1 Answers  


In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?

1 Answers  


How interpreter is used in perl?

1 Answers  


What is the purpose of redo statement?

1 Answers  


You want to open and read data files with perl. How would you do that?

1 Answers  


What is the Common Gateway Interface?

2 Answers  


Which functions in perl allows you to include a module file.

1 Answers  


What is perl shift array function?

1 Answers  


What is the difference between die and exit in perl?

1 Answers   HCL,


What is the difference between exec and system?

1 Answers  


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.

3 Answers   TCS,


Categories