Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Is there an elegant zip to interleave two lists in Perl 5? Ask Question. Asked 13 years, 4 months ago. Active 6 years, 11 months ago. Viewed 11k times. Community Bot 1 1 1 silver badge. Haskell's zip is not what you are looking for: it returns a list of corresponding pairs, not a list of interleaved elements.
You're right; Haskell lists contains elements if a single type. I wasn't thinking when I referred to Haskell here. Often when one thinks they want a zip, it's to create a hash from two lists. In that case better to use a hash slice. If that's not the case here, then sorry for the noise. Add a comment. Active Oldest Votes. Aristotle Pagaltzis Aristotle Pagaltzis k 22 22 gold badges 95 95 silver badges 96 96 bronze badges.
ThisSuitIsBlackNot Jason Navarrete Jason Navarrete 7, 6 6 gold badges 25 25 silver badges 22 22 bronze badges. What are those escaped at-signs? In addition, it supports Windows, macOS, and Linux. To download the VS Code, you navigate to the VS code homepage and download the version that suits your computer.
Installing VS Code is quite straightforward. After completing the installation, you can launch the VS Code to start programming Perl. This is perl 5, version 32, subversion 0 v5. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl".
Was this tutorial helpful? Consider looking at App::perlbrew to help compile and manage Perl from source. Find out more about the source code, development versions as well as current releases of the Perl source code. Download Latest Stable Source 5. Mac OS X already has Perl installed. Open a Terminal application in the Utilities folder of your Applications folder and run perl -v to find out which version.
This is the simplest way to install the latest version of Perl. ActiveState Perl ActiveState offers both a free community version and a commercially supported binary distribution of Perl for Win32 and Perl for Win Help is available from other Windows Perl developers on the win32 irc channel on irc.
0コメント