Hi Please see my sample program. Error:Missing $ on loop variable at C:\BSH\Flexcax_export\samples\arry_arg.pl line 11.
Thanks && Regards Karunakar Reddy B.V. -----Original Message----- From: Nathan S Haigh [mailto:[EMAIL PROTECTED] Sent: 01 August 2007 13:58 To: Beri-Veera-ext, Reddy (n.a.) Cc: ActivePerl Subject: Re: Arguments for subroutine -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Beri-Veera-ext, Reddy (n.a.) wrote: > Hello, > Thanks for your help. I wrote like > $status > =ug_convert([EMAIL PROTECTED],$dataset,$datasettype,$release_status,$item_id > ,$item_revision,$local_option); > Sub ug_convert() > { > > my($local_con_list,$local_dataset,$local_datasettype,$local_release_stat > us,$local_item_id,$local_item_rev,$local_option) = @_; > foreach my $element ( @{$local_con_list} ) > {print "$element\n";} > } > > But it is giving the error > Error: Missing $ on loop variable at > C:\UG\tceng0913\bsh\export\bin\bsh_flexcax_export_server.pl line 1300 > > Please help on this. > > Thanks && Regards > Karunakar Reddy B.V. > I don't see anything obviously wrong - are you able to supply more of your code around line 1300 and also indicate which line is 1300. Nath -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGsHUrh5z4PPfwHQoRAgzyAKCK05hPNkW0ZXntthni8666MObBBQCfQN4j WDtK6yFOovCRWTIIGpgBlMg= =Heat -----END PGP SIGNATURE-----
arry_arg.pl
Description: arry_arg.pl
_______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs