IT Community - Software Programming, Web Development and Technical Support

How you print the array using Perl?

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?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Perl

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-25-2007, 12:21 AM
raj raj is offline
D-Web Programmer
 
Join Date: Jul 2007
Posts: 89
raj is on a distinguished road
Question How you print the array using Perl?

hi,

Can any one give details about array handling in Perl?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 01:02 AM
ragavraj ragavraj is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 92
ragavraj is on a distinguished road
Default Re: How you print the array using Perl?

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Print Ads dvduval Google 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


All times are GMT -7. The time now is 03:00 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0