WEB-NES-BAY

Learn Tips and tricks on Linux, Hacking, linux, PHP, Perl, Web, Hardware

bookmark bookmark
Posted by WEBNESBAY ADD COMMENTS

Perl is renowned for being a language where you can express complicated commands in a very small amount of space. In this article, following up from my last Perl article, we’ll explore a little bit about how this is possible.
We’ll start with the simplest of programs, which simply reads in characters from the keyboard and repeats them back to the console. In Perl you might write this like so:
while ($line = <STDIN>) {
print $line;
}
Even to start [...]

Categories: Perl