![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| How to store values into variable in perl | chittiprasad15 | Linux | 3 | 05-08-2008 12:21 AM |
| Need help to write a Perl script | user_prady | Shell Programming and Scripting | 10 | 03-26-2008 02:38 AM |
| how to get last value in an array in perl | meghana | Shell Programming and Scripting | 7 | 02-04-2008 05:12 PM |
| formating array file output using perl | seismic_willy | Shell Programming and Scripting | 4 | 03-22-2007 02:23 AM |
| need help to write perl code | getdpg | Shell Programming and Scripting | 0 | 09-20-2006 09:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
What is the expected output ? Do you want to print the array elements ? If so, add the following snippet at the end Code:
foreach(@arr) {
print "array element: $_\n";
}
|
|
||||
|
i dont know but.. this one worked for me...
open(FILE, "<", "tmpfile"); my @values = <FILE>; close(FILE); i just wanted to write the values of a file into @array... but still.. ur example helped me as a start point... appreciate it.. thanks again... |
|
||||
|
can you help me on this... i try to print them($count, $last_rec) in two different lines but they get printed in one line if i use this script.....
open (fh,">>","file"); print fh "$count"; print fh "$last_rec"; close(fh); can you suggest any solution for this...thanks |
|
||||
|
Quote:
The other one I had posted should also work ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|