Re: DIfference between system and back tick

2005-12-22 Thread mtbr1221
(sorry joe, the earlier one to you was supposed to have been to the list instead) On Thu, 22 Dec 2005 10:10 , John Doe <[EMAIL PROTECTED]> sent: >swayam panda am Donnerstag, 22. Dezember 2005 05.49: [ . . ] >> foreach ( system ls) { >> >> if (/1.pl/) { >> print ;}} >> Here the output is all the f

Re: DIfference between system and back tick

2005-12-22 Thread John Doe
swayam panda am Donnerstag, 22. Dezember 2005 05.49: > Hi All, Hello Swayam > What is the difference between > > foreach ( system ls) { > > if (/1.pl/) { >print ;}} > Here the output is all the file of the CWD. Called this way, ls prints directly to STDOUT, and system returns the status

DIfference between system and back tick

2005-12-21 Thread swayam panda
Hi All, What is the difference between foreach ( system ls) { if (/1.pl/) { print ;}} Here the output is all the file of the CWD. and foreach ( ` ls`) { if (/1.pl/) { print ;}} Here is output is only 1.pl Please explain this to me Thanks & Regards Swayam -- To unsubscribe,