Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 26, 2022 12:55 am GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To