How To Tutorial: Perl Functions for Real Arrays


"Find Out How You Can Use The Perl Functions For Real @ARRAYs In The Most Frequent Situations You’re Confronted With When You Write A Perl Script … See In Minutes A Lot Of Complete Code Solutions From Which You Can Copy Pieces of Code And Paste Them Directly In Your Own Script"


The "Perl Functions for Real @ARRAYs - How To Tutorial" eBook answers the most frequently questions regarding the use of the array functions in the Perl language. You’ll find interesting and complete examples about why, how and where you can use these functions in a Perl script.


The functions described in this eBook include: pop, push, shift, splice and unshift.

For every function, I presented the syntax forms and a brief description. This was necessary to help you better understand how to use the topics. If you want a complete description of these functions, you should go for additional information to the Perl official site by following the link perldoc.

If you take your time to skim through the Table of Contents of this eBook, you’ll see what you should expect to find here. From using these functions with simple arrays or with more complex data structures as arrays of arrays, arrays of hashes or hashes of arrays, you’ll find here a lot of commented examples to help you find a quick solution to your problem.

The examples included in this eBook are not only about the array functions, but also show you how to use these functions together with the operators, special variables, statements, regular expressions and with simple or complex data structures. In the same time are provided interesting examples about how to use these functions with @_, @ARGV, @$_, %{}, ||, &&, =>, @{}, [], $_.

Complete solutions are provided for almost all the examples. Each example can be tested, modified and run individually. Every example shows you a way to resolve a specific problem, allowing you to find out a quick answer to your problem or question.


Now You Can Save Time And Find In Minutes The Answer To Your Question

If you want to improve your programming skill regarding the use of the arrays functions in different contexts, you’ll find real help in this eBook. I chose for you the most frequent questions and I illustrated them with the appropriate examples.

Of course you can continue searching through the forums to find the answer of your question but in this case you need to choose, test and interpret yourself the information provided in the forums.

In this eBook I give you a lot of working code that you can implement in minutes in your script. And not only that, all the provided code snippets are fully functional, i.e can be copied and tested in your command line window. Next, they can be integrated in a script and uploaded to your site.

In order to make the scripts very easy to understand, I commented in detail each code snippet so you will not have any problem to understand and implement it.

Table Of Contents

I think you can use this eBook to find out very fast how to use the Perl array functions in different situations.

Please take a look at the table of contents to see what I mean:

1. Copyright
2. Introduction
  2.1. How to run the examples included in this eBook
    2.1.1. How to run the script in Windows
    2.1.2. How to run the script in Linux
    
3. Functions for real @ARRAYs
    
  3.1. The pop function
    3.1.1. The syntax forms
    3.1.2. How to use pop with a stack array
    3.1.3. How to use pop with a queue array
    3.1.4. How to emulate a circular list with pop
    3.1.5. How to print an array using pop within a while loop
    3.1.6. Which is the difference between pop, chop and chomp
    3.1.7. How to use pop with array references
    3.1.8. How to use pop with a list
    3.1.9. How to use pop with split
    3.1.10. How to reverse an array using pop and push
    3.1.11. How to use pop with an AoA (array of arrays)
      3.1.11.1. How to delete the last column from a matrix
      3.1.11.2.    How to delete the last row from a matrix
    3.1.12. How to use pop with an AoH (array of hashes)
    3.1.13. How to use pop with an HoA (hash of arrays)
    3.1.14. How to use pop with @_, @ARGV, ||
    
  3.2. The push function
    3.2.1. The syntax form
    3.2.2. How to use push to append a list to an array
    3.2.3. How to use push to append an array to an array
    3.2.4. How to concatenate two arrays by alternating their elements
    3.2.5. Using push, chomp and while to create an array from a file
    3.2.6. How to use push with a stack array
    3.2.7. How to use push with a queue array
    3.2.8. How to use push to implement a simple circular list
    3.2.9. How to use push with array references
    3.2.10. How to use push with an AoA (array of arrays)
      3.2.10.1. How to read a matrix from a file
      3.2.10.2. How to append a column to a matrix
      3.2.10.3. How to append a row to a matrix
      3.2.10.4. How to read a text from a file and push into columns
    3.2.11. How to use push with an AoH (array of hashes)
    3.2.12. How to use push with an HoA (hash of arrays)
    3.2.13. How to use push with $_, @{ }, =>, [ ], ||
    
  3.3. The shift function
    3.3.1. The syntax forms
    3.3.2. How to use shift with a stack array
    3.3.3. How to use shift with a queue array
    3.3.4. How to emulate a circular list with shift
    3.3.5. How to use shift within the body of a subroutine
    3.3.6. How to use shift with an AoA (array of arrays)
      3.3.6.1. How to delete the first column from a matrix
      3.3.6.2. How to delete the first row from a matrix
    3.3.7. How to use shift with an AoH (array of hashes)
    3.3.8. How to use shift with an HoA (hash of arrays)
    3.3.9. How to use shift with @_, @ARGV, @$_, %{}, ||, &&
    
  3.4. The splice function
    3.4.1. The syntax forms
      3.4.1.1. The general syntax form
      3.4.1.2. The second syntax form
      3.4.1.3. The third syntax form
      3.4.1.4. The fourth syntax form
    3.4.2. splice versus shift
    3.4.3. splice versus pop
    3.4.4. splice versus unshift
    3.4.5. splice versus push
    3.4.6. How to use splice with an AoA (array of arrays)
    3.4.7. How to use splice with an AoH (array of hashes)
    3.4.8. How to use splice with an HoA (hash of arrays)
    3.4.9. How to use splice with @_
    
  3.5. The unshift function
    3.5.1. The syntax form
    3.5.2. How to use unshift to insert a list in front of an array
    3.5.3. Using unshift to insert an array in front of another array
    3.5.4. How to use unshift with array references
    3.5.5. How to use unshift with a stack array
    3.5.6. How to use unshift with a queue array
    3.5.7. How to emulate a circular list with unshift
    3.5.8. How to use unshift with an AoA (array of arrays)
      3.5.8.1. How to use unshift to insert a column to a matrix
      3.5.8.2. How to use unshift to insert a row to a matrix
    3.5.9. How to use unshift with an AoH (array of hashes)
    3.5.10. How to use unshift with an HoA (hash of arrays)
    3.5.11 How to use unshift with @$_

And as a bonus, I give you a "Perl Glossary" eBook to help you better understand the topics included in my tutorial.

A Sample From My eBook

To have a first look about what you could expect to find inside, I invite you to download for free a sample from my "Perl Functions for Real Arrays - How to Tutorial" and "Perl Glossary" eBooks.

What You’ll Get
  • A 70 page "Perl Functions for Real Arrays - How to Tutorial" eBook (PDF format)
  • I prepared a bonus for you – an additional glossary eBook (PDF format) meant to help you understand the topics included in this eBook tutorial
  • After I’ll modify or extend the eBook (maybe at your suggestion), the download link provided will let you download for free the upgraded version - please note that the download link will expire after 9 attempts
I intend to enlarge this eBook with a lot of other useful examples, but I am going to increase the price, too. Buy this eBook now! And you can download it for maximum 9 times, having free access to the following upgrades.

If you consider that this book is valuable or you have some suggestions to improve its content, please send me some feedback through my contact page.



 Testimonials 

Read what others have to say about my eBooks Collection!


To order your personal copy, click here to receive instant download instructions:

Buy Now

9.95 US$ only

7.45 US$ only (limited time offer)


You Are Secure!

By clicking the "Buy Now" button, you will be taken to the ultra secure online payment method using PayPal.

I will not sell or pass on your details to anyone. Your information and the fact that you contacted me are confidential.

I think this price must be very convenient to you. I try to keep the price as low as I can in order for many people to afford it. But I can’t guarantee this low price for a long time - especially in the case I'll extend the eBook, so do yourself a favor and grab it now!

30-Day, 100% unconditional money-back guarantee

If for any reason you don’t think this eBook is helpful to you in any way, I offer an unconditional, no-questions-asked, 30-Day 100% refund. You can’t lose on this deal.


Special offer

I'm gonna make you an amazing offer you can't refuse - get all my eBooks for the incredible price of 14.99 US$ only:


and save 78% ($52.81) of the real price.

These eBooks contain more than

  • 700 pages and
  • 1000 commented script examples.

To order the eBooks package, click here to receive instant download instructions:
Buy Now

14.99 US$ only (limited time offer)

30-Day, 100% unconditional money-back guarantee

If for any reason you don’t think these eBooks are helpful to you in any way, I offer an unconditional, no-questions-asked, 30-Day 100% refund. You can’t lose on this deal.


The eBooks were archived into a zip file. After you download the archive file, you need to extract the PDF files from it using WinZip or any other unzipping program.

The eBooks were converted in a PDF format, so you need Adobe Acrobat Reader to read them. Download the free version here:



return from "Perl Functions for Real Arrays - How to Tutorial" to "Perl How To Tutorials"