Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8585777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:09:04+00:00 2026-06-11T22:09:04+00:00

When I type perl in any command prompt (with Perl installed on the system

  • 0

When I type perl in any command prompt (with Perl installed on the system of course) nothing really happens. What is the point of using perl at the command prompt? Unlike the python, lua, and ruby commands it seems to do nothing.

If it does do something, what is it and how do you use it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:09:05+00:00Added an answer on June 11, 2026 at 10:09 pm

    The perl command with no arguments compiles and runs any Perl code it sees on its standard input; it doesn’t give you an interactive prompt as some other interpreters do.

    A good way to try out individual Perl commands is to invoke the Perl debugger:

    % perl -dwe 0
    

    The switches are:

    • -d : Invoke the Perl debugger
    • -w : Enable warnings
    • -e 1 : Execute 0 as a Perl script (it does nothing, but leaves you in the interactive debugger).

    And as Jack Maney said in his comment, you should read the documentation (perldoc perlrun should give you the same information locally).

    But keep in mind that the primary purpose of the perl command is to execute Perl scripts. Perl can be used interactively, and one-liners such as:

    perl -e 'print time, "\n"'
    

    (which prints the current time in seconds since 1970) can be very useful, but that’s not its main use. Normally you’d have a script with

    #!/usr/bin/perl
    

    (or equivalent) as the first line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using backticks to run an external command in perl, but I've got a
Is there any function available in Perl to check the reference type: my $ref=\@array;
I am using Net::SSH::Perl to execute a command on a remote server as follows:
How to find the image file type in Perl form website URL? For example,
#!/usr/bin/perl print Content-type: text/html \n\n; print qq(<html> <head> <script type=text/javascript src=/jquery.js></script> <script> jQuery(document).ready(function(){ jQuery(#form_lang).submit(function(e){
I'm writing a forum-type discussion board in Perl and would like to change automatically
I have run this Perl code: #!/usr/bin/perl print content-type: text/html \n\n; print Hello World.\n;
I have a Perl script called replaceUp: #!/usr/bin/perl search=$1 replace=$2 find . -type f
I'd like to write small scripts which feature incremental search (find-as-you-type) on the command
The Perl array is an abstract data type. What's the internal mechanism for the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.