Hello All, This works on Linux - perl -e 'foreach (Sugar,Sex,Simplicity,Sleep,Success,Smoking) { print "I am only addicted to - 'Shekels' \n" if ($_ =~ /^s.*/i) }'
This works on Windoze - perl -e "foreach (Sugar,Sex,Simplicity,Sleep,Success,Smoking) { print 'I am only addicted to - Shekels' if ($_ =~ /^s.*/i) }" How can I have 1 code that will run both on Nix & Windoze. Cheers, Parag