Find the answer to your Linux question:
Results 1 to 3 of 3
Hi everyone In Bash you can print information while a command is running. For example you can do: Code: Start "Installing wine" and you can see on the terminal the ...
  1. #1
    Linux User
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    277

    equivalent command in Perl

    Hi everyone

    In Bash you can print information while a command is running. For example you can do:

    Code:
    Start "Installing wine"
    and you can see on the terminal the string Installing wine.

    Does anyone know how can I do that in Perl?

    Many thanks

    Is
    Code:
    print
    isn't it?

    Sorry guys, ignore me, didn't have enough coffee this morning.
    Last edited by goude; 05-11-2010 at 10:39 AM.
    One Love!!!

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    In Bash, I don't know about "Start", but "echo" does what you want.

    Perl's "print" is the equivalent, but it is a tiny bit different. Most obviously, it does not automatically append a newline. Perl 6 has a command called "say" that does.
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Just Joined! KPolulak's Avatar
    Join Date
    Feb 2009
    Location
    New Jersey, USA
    Posts
    42
    Yes, `print` is the most common function. There are a few other output functions like `printf` and `sprintf`. Find out how to use them with the `perldoc` command.

    You really should use Google though for simple questions like this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...