in reply to Re^2: perlsub question..
in thread perlsub question..

the last two sentences look wrong to me. tried this:
D:\>perl -MData::Dumper -e "sub x{1 for 1..5};@y=x();print 'ha' if def +ined @y" ha
There's a few things to note: Finally, consider the following snippets:
$ perl -wle 'sub x{};@y=x(); print "array" if @y' (nothing) $ perl -wle 'sub x{};%y=x();print "hash" if %y' (nothing) $ perl -wle 'sub x{1..3};@y=x(); print "array" if @y' array $ perl -wle 'sub x{a => 1};%y=x();print "hash" if %y' hash

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!