What is Perl one-liner

Q

What is Perl one-liner?

✍: Guest

A

There are two ways a Perl script can be run:

  • From a command line, called one-liner - That means you type and execute immediately on the command line. You'll need the -e option to start like "C:\ %gt perl -e "print \"Hello\";". One-liner doesn't mean one Perl statement. One-liner may contain many statements in one line.
  • From a script file, called Perl program.

2007-11-19, 5637👍, 0💬