Disable output buffering in Perl
Answer:
To disable output buffering in Perl, add the following line in the Perl's code.
$| = 1;
That's all.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Disable output buffering in Perl
Answer:
To disable output buffering in Perl, add the following line in the Perl's code.
$| = 1;
That's all.
Display physical memory size in Linux
Answer:
You can use the following command to display the total size of physical memory in Linux.
# grep MemTotal /proc/meminfo
How to print something to screen
Answer:
Use the echo commamd
# echo "Hello World"
Hello World