'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
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
>
);
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