Can someone help me out with this simple code? It gives an error saying: Illegal division by zero at test.pl line 4. Exit 255
Code: --------------------------------------------- #!/usr/local/bin/perl sub test { =09my @[EMAIL PROTECTED]; =09my $div=3D$pars[0]/$par[1]; =09print "Pars were @{_}\n"; } test (1,2,3,4,5); PS: I understand that there could be several workarounds to write the same code but whatif I do want to divide one of the local variable with one of the passed parameters? Its lot confusing for me as I have a strong C/C++ background. Another silly question ... is it possible to use the regular expressions capability of perl and combine it with C++ codes in some fashion. I mean is it possible to write programs having both C++ and perl code snippets. Regards Madhur Kashyap -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>