An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
December 26, 2022 12:55 am GMT
Original Link: https://dev.to/yukikimoto/it-is-not-widely-known-that-perl-is-one-of-the-easiest-languages-to-read-like-python-23p9
It is not widely known that Perl is one of the easiest languages to read like Python.
It is not widely known that Perl is one of the easiest languages to read like Python.
It is not widely known that Perl is one of the easiest languages to read like Python, while the information that Python is the most readable programming language is widely circulated, with no confirmation of its veracity.
To resolve this misunderstanding, let me write one code.
use v5.36;while (my $line = <DATA>) { chomp $line; my ($id, $name, $price) = split(',', $line); my $new_line = join(' ', $id, $name, $price); say $new_line;}__DATA__1,Perl,20002,Database,30003,Web,4000
Result:
1 Perl 20002 Database 30003 Web 4000
How readable is Perl compared to Python?
Original Link: https://dev.to/yukikimoto/it-is-not-widely-known-that-perl-is-one-of-the-easiest-languages-to-read-like-python-23p9
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To