Perl Split

Escaping Characters Problem You need to output a string with certain characters (quotes, commas, etc. 0, we changed the interfaces to return true 64-bit values consisting of a structure of a low and high 32-bit value (this is due to the fact that there is a lack of. Here's a simple Perl program that can be used to read a file named input. Perl is the only cure to your headaches IE won't help! When this just hurts Go for Perl!. Since RHEL 7 would be based on Fedora 19 I find it kind if weird to read there will be no mod_perl in RHEL 7: there has not been a single release of Fedora without mod_perl! Furthermore, mod_fcgid is by no means a drop-in replacement for mod_perl; mod_perl allows very deep integration with the Apache web server. Perl Regex One-Liners. If you are looking for a list of recommended modules for many day-to-day tasks, look at Task::Kensho. To do this, you use the split function. [email protected] Last updated: 2015-10-12. Perl's design philosophy is expressed in the commonly cited motto "there's more than one way to do it". In this primer we'll give you a quick. I just noticed 13 years later this is the top google hit for "perl examples". This is VERY funny given how terrible my Perl knowledge is. character has a special meaning inside a pattern (it matches any single character) so it needs to be "escaped" with a \ so that split knows you really do mean a. Write a script that nds the smallest Euclid Number that is not prime. The string has "+" as the delimiter, to know that its not an operator but a delimiter we use the backslash in between forward slashes. Example 6. Additional information This kind of very basic commands and is not very well documented, but you can find something when looking around. Perl split Function Description. seps is a gawk extension, with seps[i] being the separator string between array[i. So in summary, if you want to use the most powerful search and replace tools on the command line, and do it in the easiest form, use perl -p -i -e 'pattern' file and use it wisely. The perl module is a general Perl API for manipulating VCF files, whereas the binary executable provides general analysis routines. If you ever run into any advice that accidentally escaped from 1980 telling you to use awk because it automatically splits lines into fields, this is how you use perl to do the same thing without learning another, even worse, language. com examples/regex/parse_field_value_pairs. pl のファイル名で提供されます。これは環境変数PERLLIBで指定されたディレクトリやカレントディレクトリから検索されます。特殊変数@INCはperlライブラリを探す場所のリストを保持しています。. If using secure cookies, make sure you also read the notes below on setting the domain. Splitting on Whitespace Using the PowerShell -split Operator. For example, let's have Perl count the number of lines in each file given on the command line. this page shows you how to split a line by regex. I help by introducing Test Automation, Continuous Integration, Continuous Deployment, Containerization (Vagrant, Docker), Cloudification (GCP, AWS), and other Agile and DevOps practices. Atul Singh / in Administration, perl, Script, Shell Script / Sharing two utility scripts (Perl), which can be used for extracting. A note on setting the path. SYNOPSIS split string?splitChars? DESCRIPTION. Padre really wants to help you, as such there is no single set of help documentation for now. pl Devel::ptkdb Perl/Tk based graphical debugger by Andrew E. It was originally a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. Get your ideas out there. The array is used to store the list of values and each object of the list is termed as an element. It seems like, unlike Java where 'lib' generally means 3rd party jars, a lib in Perl denotes the root containing all the packages specific to a script. ; forum discussion How to split a file but not line by line - Perl Programming Training, Open Source computer languages. Other people in the community also use Vim , Emacs or Padre. Written in Perl and offering the modern features you've come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd. Any single character (or series of characters) matches directly, unless it is a metacharacter with a special meaning. Using the split function:. To print the first element of the array, write the following statement: print @splitURL[0]; Print out a blank line to break up the program output into neat lines. If you target old perls, beware. Here is the last thing I tried. split() returns the number of elements created. Splitting on a string. At the Unix prompt, enter: split [options] filename prefix. If capturing parentheses are used in the RE, then their contents will also be returned as part of the resulting list. The patterns used in pattern matching are regular expressions that follow the rules laid out below. If this function is to be called on the same pattern more than once, it's more efficient to compile the pattern once with g_regex_new() and then use g_regex_split(). misc seem to be trying to do the same stupid thing in the same stupid way, I thought I'd mention it, and maybe raise the general. Note that these scripts are to show how to use some of the basic components of Perl; they do NOT represent good programming style! compavg. The -split operator takes a regular expression, and to split on an arbitrary amount of whitespace, you can use the regexp "\s+". If not in a list context, returns the number of fields found and splits into the @_ array. split takes two arguments. So in summary, if you want to use the most powerful search and replace tools on the command line, and do it in the easiest form, use perl -p -i -e 'pattern' file and use it wisely. Splitting on a space. control-backslash in a literal. SouthAmericanPostcard. En este tutorial vamos a ver dos funciones que se relacionan, la función split y el join. Split actually gets "\\" which gets turned into "m/\\/" which then splits on "\". https://www. In 1978, PEL was acquired by Saigol Group and was taken public a decade later. unsplit works with lists of vectors or data frames (assumed to have compatible structure, as if created by split). It can cut up a string into pieces along a pre-defined string or regex returning an array of smaller strings. In this article we used split function to extract out the columns from CSV file using comma (,) as separator. Regular Expressions are useful and very powerful, and Perl helps you manipulate strings with relative ease. To split a string in bash using IFS, follow the below steps : Set IFS to the delimiter you would want. Example 6. 0 documentation site The content of this documentation site is built automatically - directly from the documentation created by the Perl developers. Parsing Strings with split Parsing parsing dividing a string into tokens based on the given delimiters token one piece of information, a "word" delimiter one (or more) characters used to separate tokens. splitは指定された区切り文字で文字列を分割するための関数です。CSVファイルなどの値を取得する際によく使われます。. In Perl the function is called split. com examples/regex/parse_field_value_pairs. pl – a Perl script to download and upload data from and to a NaviGPS device via USB sanity. A string is splitted based on delimiter specified by pattern. This should also work for any language that supports Perl regex. Tutorials, trainers, online lessons, reference and more. Perl localtime Function - This function converts the time specified by EXPR in a list context, returning a nine-element array with the time analyzed for the current local time zone. Strawberry Perl is a perl environment for MS Windows containing all you need to run and develop perl applications. NET Framework, which many people were reluctant to install on their SQL Servers. Regular Expressions are useful and very powerful, and Perl helps you manipulate strings with relative ease. fname = Foo lname = Bar [email protected] How to Split PDF Files. Perl trim function to strip whitespace from a string. See Section 5. South America Journey free app, the best app for S. Source code is not available. Perl is an interpreted, not compiled, language. Write a script to accept a string from command line and split it on change of character. 1 comment: Sinu George July 25, 2016 at 10:31 PM. The MySQL Front-End Modules enable SQL Relay to speak the MySQL client-server protocol, making it a transparent, server-only proxy for MySQL apps. Help with script to split a file into chunks I need to find a painless way to split large text files into smaller ones in work. The array is used to store the list of values and each object of the list is termed as an element. The tr / // function is used in Perl to transliterate all occurrences found in a search list with the corresponding character in a replacement list. 17 - Command-line Options. If you want to review your Perl knowledge, you will find some new features of the Perl language, which has been released in the recent versions. And the compiler interprets storing the results in as not caring about the results, so split() will not split the string at all, and thus return the full string, which gives a list of only one element in scalar context, hence the 1. Source code is not available. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. South America Journey free app, the best app for S. Perl enables you to write powerful programs right from the start, whether you're a programming novice or expert. Thabiso shabbir Hi I have a wheel alignment system Lawrence machine V 3 D with safe-net sentinel key system installed,lost USB dongle,& application can not open without the dongle, The software is RS2. perl split_fasta. To find out what"s new in Perl 5. split /PATTERN/,EXPR; split /PATTERN/ split. PERL - Substr() and String Indexing. The above example will split all words in the line stored in $_ to individual words and return them as a list; naturally, we stored the list in the @words array so we can refer to them later. Return Value in Scalar Context: Not recommended, but it returns the number of fields found. The until loop works like while loop, but they are opposite of each other. 15 pushes Cupertino's low bar for code. My goal was to understand how classes can use each other when residing in various packages. Split and context. This tutorial discusses CPAN modules for text parsing, and shows how you can use them easily in your own programs. (If all fields are empty, they are considered to be trailing. Perl trim function to strip whitespace from a string. Splitting But NOT Splitting. The perl command is the interpreter of the Perl programming language. Here’s a simple Perl program that can be used to read a file named input. A string is splitted based on delimiter specified by pattern. For example, let's have Perl count the number of lines in each file given on the command line. You may need to write a script (e. If not in a list context, returns the number of fields found and splits into the @_ array. Padre really wants to help you, as such there is no single set of help documentation for now. Available Tools for debugging There are several tools available in perl for debugging and similar tasks Built in command line debugger perl -d yourcode. Split the elements of a character vector x into substrings according to the presence of substring split within them. Hi, we are the only solutions for your Perl homework and will ensure that you receive an excellent grade that satisfies you. GNU Parallel Tutorial. For example: var = "Hello World!". The string value of the third argument, fieldsep, is a regexp describing where to split string (much as FS can be a regexp describing where to split input records). In 1978, PEL was acquired by Saigol Group and was taken public a decade later. By default, empty leading fields are preserved, and empty trailing ones are deleted. Reply Delete. -Matthew Lewis. codepad is an online compiler/interpreter, and a simple collaboration tool. Here we demonstrate varible substitution in regular expressions. 0 documentation site The content of this documentation site is built automatically - directly from the documentation created by the Perl developers. To split a string in bash using IFS, follow the below steps : Set IFS to the delimiter you would want. awk is small, fast, and simple, unlike, say, perl. split string->array, join array->string,. Language: C C++ D Haskell Lua OCaml PHP Perl Plain Text Python Ruby Scheme Tcl. The coverage is pretty quick, intended for people with some programming experience. Live it, love it, learn it. Return Value in Scalar Context: Not recommended, but it returns the number of fields found. Return Value in Scalar Context: Not recommended, but it returns the number of fields found. Strawberry Perl is a perl environment for MS Windows containing all you need to run and develop perl applications. A (hopefully) comprehensive list of Perl 5 builtin functions with their Perl 6 equivalents with notes on variations between them where necessary. Source code is not available. tutorialspoint. The split command requires a character (or characters) on which to break the input, and some kind of input to break up. In Perl, array is a special type of variable. com wrote: Show quoted text. 11, it also overwrote @_ with the list in void and scalar context. By default, empty leading fields are preserved, and empty trailing ones are deleted. A list of usage examples can be found here. Regular expressions are powerful pattern matching algorithm that can be performed in a single expression. Returns a list created by splitting string at each character that is in the splitChars argument. Initialize (clear) an array. PEL was founded in 1956 through technical collaboration with AEG. Split an Array into Two Equal Parts This is a small snippet of Perl code which demonstrates a quick and easy way to take an array that contains an even number of elements and split it up into two smaller arrays. If you ever run into any advice that accidentally escaped from 1980 telling you to use awk because it automatically splits lines into fields, this is how you use perl to do the same thing without learning another, even worse, language. Bamboo grows in sections. (You can also define new functions yourself. There are different criteria to split a string, like on a single character, a regular expression (pattern), a group of characters or on undefined value etc. I need to read data from a file into a perl hash (associative array) table. characters in it. PDF Split & Merge with Perl. A list of usage examples can be found here. Split string with new line character?. , perldoc -f chomp at the command line. If your system uses GNU tar, you can use tar in conjunction with the gzip file compression utility to combine multiple files into a compressed archive file. split REGEX, STRING will split the STRING at every match of the REGEX. If fieldsep is omitted, the value of FS is used. A delimiter is a character(s) that separates elements of a string. Date: 2005-04-15. example: fruit1, fruit2,pricerate,quantity orange, a. I did this by using char[] split = new char[1]; split[0] = '"'; This gave me what was between a set of qutation marks as the ' " ' is at the start and end of the split I needed. #!/usr/bin/perl use strict; use warnings; # data: field_value_pairs. txt" files in parts while retaining header lines. I have developed following regular expression and used it successfully with Java (I haven't tried it yet, but it should also work with Perl). Available Tools for debugging There are several tools available in perl for debugging and similar tasks Built in command line debugger perl -d yourcode. Perl trim function to strip whitespace from a string. Strawberry Perl is a perl environment for MS Windows containing all you need to run and develop perl applications. Perl -- Split on Whitespace: Final Version! The above program is better, but if you have more than one consecutive whitespace character in your input, you'll end up with unexpected results. com/videotutorials/index. If no pattern is specified whitespace is the default. The string value of the third argument, fieldsep, is a regexp describing where to split string (much as FS can be a regexp describing where to split input records). In this tutorial, we will learn -. 1) Split Strings on Character Change. Stop wasting time setting up a development environment. If PATTERN is a regular expression, then that will be used to split up the string. txt -n 1000 The best thing about this script is that you can control the number of sequence per file you want. Perl offers the standard programming tools — comparison operators, pattern-matching quantifiers, list functions — and has shortcuts for inputting character ranges. Perl - How to split a string into words? H ow to split a string into individual words? Let us see in this article how to split a string which has 2 words separated by spaces. Each element of the result list will consist of the characters from string that lie between instances of the characters in splitChars. Perl Cheat Sheet Functions Get information on a function by typing, e. 11, it also overwrote @_ with the list in void and scalar context. You can do it with a regular expression. Please note that just because the keyword exists it does not mean that it is recommended to use it!. Perl has many features, but you can get pretty far with just the basics, and that's what this document is about. A string is splitted based on delimiter specified by pattern. thickness. I only want to split where there are 2 or more white spaces. PEL was founded in 1956 through technical collaboration with AEG. VCFtools consists of two parts, a perl module and a binary executable. Regular Expressions Cheat Sheet from DaveChild. HTML CSS JavaScript XHTML SSI Perl CGI PHP tutorials. Perl IDE for Teams Code Collaboration allows you and your team to edit a document with multiple users simultaneously. Accidently running perl-script with sh, how to detect that and take actions? 0. Splitting on an undefined value. The information published on this website may not be suitable for every situation. The -split operator takes a regular expression, and to split on an arbitrary amount of whitespace, you can use the regexp "\s+". I can understand in principle the remark about this being old and unmaintained but I could not find the w32 package referenced in the comment, only "GnuWin32" (I assume that was the one intended) which is here at sourceforge - however that package appears not to contain the date. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. In Python everything is object and string are an object too. How to Split PDF Files. 作用:把数组元素或者几个字符串通过分隔符连接成单个字符串 2. In a string How do I replace a backward slash with a forward slash? when I call the. PERL is listed in the World's largest and most authoritative dictionary database of abbreviations and acronyms PERL - What does PERL stand for? The Free Dictionary. (Prior to Perl 5. The information published on this website may not be suitable for every situation. Figure 12-1 shows the tabs for the three default sheets named Sheet1, Sheet2, and Sheet3 that Excel automatically provides for new workbooks. Both patterns and strings to be searched can be Unicode strings as well as 8-bit strings. say can be used to stringify it to something meaningful. The source for this interactive example is stored in a GitHub repository. =begin Online Perl Compiler. Perl is a family of two high-level, general-purpose, interpreted, dynamic programming languages. In this primer we'll give you a quick. Use perl -lane ? when processing input into columns: easy to remember (data split into multiple lanes), and handles line breaks via the -l option. I have developed following regular expression and used it successfully with Java (I haven't tried it yet, but it should also work with Perl). You can cause characters which normally function as metacharacters to be interpreted literally by prefixing them with a "\" (e. "Perl" usually refers to Perl 5, but it may also refer to its redesigned "sister language", Perl 6. MS-Windows 95 / 98 / ME / NT / 2000 / XP with msvcrt. but the second job will be split into 4 evenly sized jobs, The perl program print "@ARGV " basically works like echo. There is usually no need to convert between numbers and strings in Perl. For 32 / # Start a Perl 6 regex (called "regular expression" in. Split(String, Int32, Int32) Split(String, Int32, Int32) Split(String, Int32, Int32) Split(String, Int32, Int32) Splits an input string a specified maximum number of times into an array of substrings, at the positions defined by a regular expression specified in the Regex constructor. You are currently viewing LQ as a guest. Después de hacer varios tutoriales para programadores de perl con experiencia, decidí hacer algunos sumamente básicos, para todos ustedes que esten en sus primeros pasos con perl. IFS='' IFS is an internal variable that determines how Bash recognizes word boundaries. Perl and Python are both scripting languages. Each of the 100 contains a file ending in. For instance, you’re producing a format string for sprintf and want to convert literal … - Selection from Perl Cookbook [Book]. Personally, I would make the script more flexible by parsing the options via GetOpt::Long and having the input file as the last parameter. Regular expressions are powerful pattern matching algorithm that can be performed in a single expression. Perl中的一个非常有用的函数是Perl split函数-把字符串进行分割并把分割后的结果放入数组中。这个Perl split函数使用规则表达式(RE),如果未特定则工作在$_变量上。 Perl split函数可以这样使用:. > I have a string which i know, it is a concatenation of "fixed > length of substring". Although they can be used for similar purposes, the philosophies behind the two languages are very different. 0 take a look at the perldelta page. characters in it. csv and split the strings that are read into different field (so this is also a Perl split string example):. Usage strsplit(x, split, extended = TRUE, fixed = FALSE, perl = FALSE) Arguments. How to install Perl on Window, macOS and Unix/Linux. The Regular Expression tr/// operator is used to change a set of characters into another set of characters as its not possible with "s//" operator, in this the second argument has replacement characters and only at compile time it checks the strings to be replaced. Split is a built-in perl function that is used to break up strings into substrings based on a delimiter. Perl gained widespread popularity in the late 1990s as a CGI scripting language, in part due to its parsing abilities. Padre really wants to help you, as such there is no single set of help documentation for now. We, Wall, we, Wall, Raku: Perl creator blesses new name for version 6 of text-wrangling lingo How bad is Catalina? It's almost Apple Maps bad: MacOS 10. 作用:把数组元素或者几个字符串通过分隔符连接成单个字符串 2. If you ever run into any advice that accidentally escaped from 1980 telling you to use awk because it automatically splits lines into fields, this is how you use perl to do the same thing without learning another, even worse, language. Perl split Function Description. This is a special case where Perl emulates awk and will split on all contiguous whitespace, trimming any leading or trailing whitespace as well. The languages include Perl 5 and Perl 6. Regular expressions are an integral part of the m//, s///, qr// and split operators and so this tutorial also overlaps with "Regexp Quote-Like Operators" in perlop and "split" in perlfunc. Split a scalar to create a list : Array Scalar « Array « Perl. Input: The input string contains the numbers 10, 20, 40 and 1, and the static Regex. Perl is the programming language from which JavaScript modeled its regular expressions. Perl split string example. Perl conditions: Sorting out 'and' and 'or' by Guest Contributor in Developer on July 30, 2002, 12:00 AM PST Perl Boolean operators can be cumbersome and confusing. split /PATTERN/,EXPR,LIMIT split /PATTERN/,EXPR split /PATTERN/ split Splits a string into an array of strings, and returns it. Elements can either be a number, string, or any type of scalar data including another variable. org/perl/artwork This site is not affiliated with any transit agency or provider. Can somebody suggest how to use piping of commands in a perl script? Specifically commands that involve calling awk? I'm trying to create a perl script that will read disk usage using df -H and return the second-last row of output, which shows the %use. Using split to return a @ without splitting on spaces. Since RHEL 7 would be based on Fedora 19 I find it kind if weird to read there will be no mod_perl in RHEL 7: there has not been a single release of Fedora without mod_perl! Furthermore, mod_fcgid is by no means a drop-in replacement for mod_perl; mod_perl allows very deep integration with the Apache web server. Help with script to split a file into chunks I need to find a painless way to split large text files into smaller ones in work. 1) Split Strings on Character Change. In earlier Perls this special case was restricted to the use of a plain " "as the pattern argument to split, in Perl 5. com/ Part 18 of the Perl Tutorial explains the split and join functions. This function splits a string expression into fields based on the delimiter specified by PATTERN. Perl split string - example #2. Labels: Perl, Split string by fixed length. codepad is an online compiler/interpreter, and a simple collaboration tool. A very useful function in Perl is split, which splits up a string and places it into an array. Perl 6 is a sister language, part of the Perl family, not intended as a replacement for Perl 5, but as its own thing - libraries exist to allow you to call Perl 5 code from Perl 6 programs and vice versa. Chilkat Perl Downloads. The plus matches one or more of the preceeding (space) characters. 0, we changed the interfaces to return true 64-bit values consisting of a structure of a low and high 32-bit value (this is due to the fact that there is a lack of. Numbers and strings are interchangeable: if you use a number in a place that expects a string (e. I am working on Linux Rhel6. The JSON module contains JSON-specific decode/encode functions that convert a JSON string into a Perl data structure, and vice versa. String-valued functions return NULL if the length of the result would be greater than the value of the max_allowed_packet system variable. A string is splitted based on delimiter specified by pattern. 분리하기 위한 문자는 단일 문자일수도 있고 문자열 일 수도 있다. The split function stores each string as a separate element in an array. Since RHEL 7 would be based on Fedora 19 I find it kind if weird to read there will be no mod_perl in RHEL 7: there has not been a single release of Fedora without mod_perl! Furthermore, mod_fcgid is by no means a drop-in replacement for mod_perl; mod_perl allows very deep integration with the Apache web server. Figure 12-1 shows the tabs for the three default sheets named Sheet1, Sheet2, and Sheet3 that Excel automatically provides for new workbooks. One of Perl's main goals is parsing text. Perl string manipulations The most powerful features of Perl are in its vast collection of string manipulation operators and functions. Split File Online. (If all fields are empty, they are considered to be trailing. Usage strsplit(x, split, extended = TRUE, fixed = FALSE, perl = FALSE) Arguments. delimeter is not optional. Requirements for running applications, excluding external ones such as msvcrt. In fact, there are two functions for converting from one to the other. PDF documents are often used because they help preserve the original content of the document, but this can make splitting the file up a little more difficult than other document formats. To do this, you use the split function. A loop allows you to execute statement blocks over and over again, with logical conditions, value lists or control statements being used to control the loop. Often, we are given a file fullpath and we need to split it into the directory name and file name. org, a friendly and active Linux Community. Initialize a hash reference. 0 and later this special case is triggered by any expression which evaluates to the simple string " ". If you try to just supply the string and not the delimiter, it takes the string from $_. Key bindings for F1 will bring up the DocBrowser, a means to search for and browse Perl documentation, F2 searches the core language documentation, such as built in functions ( split, join ), variables and core Modules. It seems like, unlike Java where 'lib' generally means 3rd party jars, a lib in Perl denotes the root containing all the packages specific to a script. Founded in 1950, Pearl Izumi has been crafting cycling shorts, jerseys, outerwear, essentials and footwear for athletes on two wheels for over 65 years. but the second job will be split into 4 evenly sized jobs, The perl program print "@ARGV " basically works like echo. Each part is connected, but also separate. If no pattern is specified whitespace is the default. If you're bent on using Perl, the Perl Power Tools also have a pure Perl implementation of split. txt -o result. It is just returning the whole string rather than. It has a luminous character with cool silver-grays, chalky whites, pewter and coppery accents. My goal was to understand how classes can use each other when residing in various packages. This function splits a string expression into fields based on the delimiter specified by PATTERN. Using split to return a @ without splitting on spaces. If this function is to be called on the same pattern more than once, it's more efficient to compile the pattern once with g_regex_new() and then use g_regex_split(). Hi, we are the only solutions for your Perl homework and will ensure that you receive an excellent grade that satisfies you. Helping companies have faster release cycles and more stable software. Split the elements of a character vector x into substrings according to the matches to substring split within them. character vector (or object which can be coerced to such) containing regular expression(s) (unless fixed = TRUE) to use for splitting. If DELIMITERS is a list, then all of its elements will be considered a delimiter (either a string or a regular expression) to split the string on. In this primer we'll give you a quick. It is designed to be as close as possible to perl environment on UNIX systems. On Sun, 04 Dec 2016 13:56:12 -0800, brian. Demonstrates how to split a file into chunks. PHP Regular Expressions Tutorial: Preg_match, Preg_split, Preg_replace. Note that in atleast in PHP 5. Splitting a long string. Use perl -lane ? when processing input into columns: easy to remember (data split into multiple lanes), and handles line breaks via the -l option. The split command requires a character (or characters) on which to break the input, and some kind of input to break up. < Perl Programming # The split function allows you to split a string wherever a regular expression is matched. 在perl中,join()和split()的功能是相反的。一. Getting started with Perl Language, Comments, Variables, Interpolation in Perl, True and false, Dates and Time, Control Statements, Subroutines, Debug Output, Lists, Sorting, File I/O (reading and writing files), Reading a file's content into a variable and Strings and quoting methods. If you just have look at the passwd file you can see the lines are separated with semicolon ":" and that is being used to split the file here. It seems like, unlike Java where 'lib' generally means 3rd party jars, a lib in Perl denotes the root containing all the packages specific to a script. The perl module is a general Perl API for manipulating VCF files, whereas the binary executable provides general analysis routines.