Re: for each

2005-10-07 Thread Mark Sargent
$ perl -e ' @arr = qw (a b c); foreach(1 .. $#arr) { print $arr[$_]\n; }' prints: b c Is that what you want? -- Regards, Edward WIJAYA SINGAPORE Hi All, Edward, for a beginner, would you mind explaining what the (1 .. $#arr) and qw actually do in this code.? Cheers Mark

Re: for each

2005-10-07 Thread Mark Sargent
SINGAPORE Mark Sargent. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: two questions

2005-10-06 Thread Mark Sargent
related issues, try here, http://www.dslreports.com/forum/unixdsl It's an all unix related forum. HTH. Cheers. Mark Sargent. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Perl and Unix/Linux Tutorials

2005-09-07 Thread Mark Sargent
, are there any books written specifically with Unix/Linux admin in mind.? Cheers. Mark Sargent. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Perl and Unix/Linux Tutorials

2005-09-07 Thread Mark Sargent
Cheers. Mark Sargent. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

$ or % For Associative Arrays?

2005-09-02 Thread Mark Sargent
with respect to the name of an associative array as a whole. Am I to assume that either is fine, when defining associative arrays.? Cheers. Mark Sargent. %name{} /associative array/ ; a special, 2-dimensional array, ideal for handling attribute/value pairs. The first element in each row