It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
![]() |
![]() |
|
LinkBack | Thread Tools | Display Modes | ![]() |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 52
Posts: 24
|
Hi,
How can I obtain the size of an array that was passed as a reference. ex: &something(\@v1,\@v2); sub something{ my($arr1,$arr2)=@_; #get size of arr1? } I know I can loop through all the items by setting up a foreach(@$arr) but the regular old $# doesn't seem to work. I also don't want to make a copy of this as an array, I want to keep it as a reference. Thanks! Aaron |
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linking own sites for reference? | jordan | PPC Search Engines | 1 | 10-11-2006 05:15 AM |
| What's the difference between the System.Array.CopyTo() and System.Array.Clone()? | agaba175 | .NET | 0 | 08-01-2006 05:15 PM |
| How to hide characters in parameter forms(To hide password) | austin | Site and Server Administration | 0 | 07-29-2006 03:53 PM |
| Designer data export and obsolete OPTIMIZER_GOAL parameter dat adm | zachary | Programming | 0 | 07-29-2006 03:45 PM |
| Size down? | sneak123 | Forum Management | 6 | 01-07-2006 07:08 PM |