Re: for each

2005-10-07 Thread Mark Sargent
definitely is...cheers. Regards, Edward WIJAYA 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: 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

Re: two questions

2005-10-06 Thread Mark Sargent
your unix 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>

Re: Perl and Unix/Linux Tutorials

2005-09-07 Thread Mark Sargent
om/catalog/perlsysadm/ John 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-06 Thread Mark Sargent
wbie. Also, 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>

$ or % For Associative Arrays?

2005-09-02 Thread Mark Sargent
bol and curly braces 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