Re: Perl variable indirection

2011-11-05 Thread Shlomi Fish
're using $_[0] both as a string and as a reference. What are you trying to do? > > When the code is executed, I get an error > > *Can't use string ("some") as a SCALAR ref while "strict refs" * > > This is resolved using - *no strict 'r

Re: Perl variable indirection

2011-11-05 Thread Anneli Cuss
gt; > When the code is executed, I get an error > > *Can't use string ("some") as a SCALAR ref while "strict refs" * > > This is resolved using - *no strict 'refs*'; > > Do we need to always use the above while using Perl variable indirection > - ${$_[0]} > > Parag >

Perl variable indirection

2011-11-05 Thread Parag Kalra
); sleep 8; } When the code is executed, I get an error *Can't use string ("some") as a SCALAR ref while "strict refs" * This is resolved using - *no strict 'refs*'; Do we need to always use the above while using Perl variable indirection - ${$_[0]} Parag