![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk, join or sed | jkl_jkl | Shell Programming and Scripting | 1 | 04-15-2008 06:55 AM |
| Join | jazz8146 | UNIX for Dummies Questions & Answers | 5 | 01-29-2008 11:42 AM |
| join (pls help on join command) | summer_cherry | Shell Programming and Scripting | 1 | 12-31-2007 05:19 AM |
| bss(uninitialized data) segment allocation | karimulla_sha | High Level Programming | 7 | 04-26-2005 02:46 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
When try to execute the following script, its throwing this error:
" Use of uninitialized value in join or string at arraydef.pl line 17. " The script is [ i am pasting with line numbers]: 1 #!/usr/bin/perl 2 3 use strict; 4 5 my @a = ( 1...10 ); 6 7 print " Original array : @a \n "; 8 9 #DELETE Function 10 11 my $size=@a; 12 13 print "size of arry before deleting 1st element : $size \n "; 14 15 16 delete($a[0]); #Deleting 1st element 17 print " Array after deleting first element : @a \n "; 18 $size=@a; 19 print "size of arry after deleting 1st element : $size \n "; # size dont differ wen we delete 1st or middle ,,. It differs only wen we delete last element. 20 21 delete($a[$size-1]); 22 print " Array after deleting last element : @a \n "; 23 $size=@a; 24 print "size of arry after deleting last element : $size \n "; |
| Bookmarks |
| Tags |
| perl, perl array, perl shift, shift, shift perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|