in reply to Re^5: Unable to declare local variable with "use strict".
in thread Unable to declare local variable with "use strict".

Did you run it? Maybe if you told us what error you got?

#!/usr/bin/perl -w use strict; ref_test1(); sub ref_test1 { print "Here in ref_test1.\n"; ref_test2("connect"); } sub ref_test2 { my ($type) = @_; print "Type: $type\n"; print "Here in ref_test2\n"; }
Here in ref_test1. Type: connect Here in ref_test2