Alatar has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a project which uses another guy's code and he had all warnings off so I've been trying to clean up his code in order to get a clean compile. I've managed to clean up all but two lines of code, which are being used in a peculiar way.
The code is as follows:
Now what he's trying to do is to get the length of $var_cellname and $var_cdrcellname by splitting into elements and counting the elements. It works, but it returns the error shown above.$var_cellsplit=split( //. $var_cellname ); $var_cdrcellsplit=split( //. $var_cdrcellname );
Is there a way to make this cleaner? I'm assuming he went this way for a reason instead of using length().
Thanks,
Alatar
*EDIT* Roy and Dave, thanks for the explanation. The . was simply a typo as I'm accessing the web from a different PC than where I have the Code. I'm pretty sure now that he was doing this because he wasn't aware of the length() function.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use of implicit split to @_ is deprecated
by davido (Cardinal) on Jun 04, 2004 at 15:32 UTC | |
|
Re: Use of implicit split to @_ is deprecated
by pbeckingham (Parson) on Jun 04, 2004 at 15:12 UTC | |
|
Re: Use of implicit split to @_ is deprecated
by Roy Johnson (Monsignor) on Jun 04, 2004 at 15:14 UTC | |
by Abigail-II (Bishop) on Jun 04, 2004 at 15:49 UTC | |
|
Re: Use of implicit split to @_ is deprecated
by Abigail-II (Bishop) on Jun 04, 2004 at 15:13 UTC |