CoderZone.org

Category: >> Perl Code >> Create an array from a range of letters or numbers Bookmark and Share

<< lastnext >>

Snippet Name: Create an array from a range of letters or numbers

Description: The range operator ("..") expands two letter or number values into a list containing all the intermediate values. The two values must be part of a valid, ascending series.

Also see:
» Create an array from words in an H...
» Create an array from the contents ...
» Create an array from the lines of ...
» Create an array from comma separat...
» Create Filler Text
» Dynamically create HTML elements
» Create a drop down menu from an ar...
» FUNCTIONS: Create function
» TABLESPACE: Create temp tablespace
» USERS: CREATE USER w/ authenticati...
» Create Database Link
» Check Constraint - Create
» Create string by formatting an amo...
» SEQUENCE: Create sequence demo
» Create Table INSERT (CTAS)
» Create View
» CREATE USER
» Create Sequence
» Create monthly partitions
» Create Package
» Create INDEX
» Create Basic PDF
» Create gzip file
» Create Function
» Create an HTML page on demand
» Create mySQL table with PHP
» Create thumbnails with PHP
» Create Operator
» Create Random Password

Comment: (none)

Author: CoderZone
Language: PERL
Highlight Mode: PERL
Last Modified: December 03rd, 2010

@arr = (0..9, A..F);
print "@arr";
 
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 20