This is a discussion on How you print the array using Perl? within the Perl forums, part of the Software Development category; hi, Can any one give details about array handling in Perl?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Array Declaration 1.@a = (); 2.@a = ( 'xx', 11, 33.5, ); 3.@a = 12..33; 4.$a[2] = 'something'; Array length $len = scalar(@a); # or $len = @a Print a Array @aVal = ("Gold","Silver","iron"); # PRINT THE ARRAY print "@aVal"; print "<br />"; print @aVal; Thanks R.Rajan |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Print Ads | dvduval | 1 | 10-14-2007 04:46 PM | |
| How can I print my output? | S.Vinothkumar | C and C++ Programming | 2 | 10-13-2007 12:46 AM |
| What’s the difference between the System.Array.CopyTo() and System.Array.Clone() ? | Archer | C# Programming | 2 | 08-25-2007 03:00 AM |
| how to print iframe pdf document using file print menu using javascript | kingmaker | HTML, CSS and Javascript Coding Techniques | 1 | 08-22-2007 05:32 AM |
| How to set Perl Interpreter within perl script | sivaramakrishnan | Perl | 1 | 07-19-2007 06:45 AM |