answersLogoWhite

0


Best Answer

Are you looking specifically for a Perl answer, or a general answer? Most shell environments can do this as well, use the 'read' command.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there a way to get user input besides the command line in Perl?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the correct command for transport input ssh?

router(config)#line vty 0 4router(config-line)#transport input ssh


How do you make the hello world code in Perl?

First, make sure you have #!/usr/bin/perl at the top. Then, click enter, and type: print "Hello, World!"; After that, save it as name.pl (replace name with whatever you want to name it) and you are all done! Test it out on a web server that supports perl or the perl command line.


What are two different ways to turn on warning in perl?

For Perl one-liner, use -w option on the command line. UNIX or Windows, use's the -w option in the shebang line (The first # line in the script). When using other systems, choose compiler warnings, or check the compiler documentation.


How do you use float values in Linux?

This is such an incredibly vague question. How do you want to use them? In C Programming? perl? python? at the command-line? Please clarify.


How do you write a function in Turbo C that can run the program without rerunning the whole program?

The execution path of a program can only be affected by the program input. That is, if you change the input, you can alter the way the program behaves (just as changing the arguments to a function can alter the behaviour of the function). Typically you will alter the input via the command line, but you can also alter the input at any time during program execution. Redirecting input via the command line can be achieved by extracting the input from a file (via std::cin) or by implementing command line switches in your main function, or through a combination of the two.


What is the role of the grep function in the Perl programming language?

The grep function in Perl is the command-line function which can be used to search in a data set for lines which match a regular expression. The grep function is essentially a tool that can be used to search for particular information within the data.


What would a wait for input command in Assembly look like?

It would look like a line of assembly code!


What is Tee Command in unix?

The Unix/Linux tee command permits the forking of a data pipe in a shell script or at the command line. The teecommand does this by both writing it's standard input to a file and to it's standard output simultaneously. Most implementations of tee provide for both file overwrite/creation and file appends by command line switch options.


Which commands can you use from the command line to send a file to the default printer?

Redhat / Fedora 12 Answer: lp and lpr without arguments send their standard input to the printer.


What is console application in c sharp?

The console application in C sharp(C#) is a simple application which takes input and returns output on a command line console, with the following data streams: standard input, standard output, and standard error.


When was In the Beginning... Was the Command Line created?

In the Beginning... Was the Command Line was created in 1999.


7. The lpr and sort utilities accept input either from a file named on the command line or from standard input. a. Name two other utilities that function in a similar manner. b. Name a utility that ac?

a. cat and grep b. tr