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 ...
- 05-11-2010 #1Linux 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:
and you can see on the terminal the string Installing wine.Code:Start "Installing wine"
Does anyone know how can I do that in Perl?
Many thanks
Isisn't it?Code:print

Sorry guys, ignore me, didn't have enough coffee this morning.Last edited by goude; 05-11-2010 at 10:39 AM.
One Love!!!
- 05-11-2010 #2
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
- 05-13-2010 #3
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.


Reply With Quote