in reply to Fastest (Golfish) way to strip whitspace off ends.
I realise this has GOLF in the title, and I'm not the squeamish type, but seeing functions written to rely upon them being given their argument in $_ makes my skin crawl :)
For one thing, there is no need or point in actually passing the argument to the functions as A( $_ ), as all you are doing is stacking a variable which you then don't use inside the function.
Second, it your going to write functions that emulate some of the built-ins and use $_ by default, you should at least check to see if you have been passed any arguments and operate on them if you have, and only apply the default if you haven't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fastest (Golfish) way to strip whitspace off ends.
by halley (Prior) on Jul 02, 2003 at 17:02 UTC | |
by BrowserUk (Patriarch) on Jul 02, 2003 at 17:21 UTC | |
by Enlil (Parson) on Jul 02, 2003 at 22:32 UTC | |
|
Re: Re: Fastest (Golfish) way to strip whitspace off ends.
by EvdB (Deacon) on Jul 03, 2003 at 09:07 UTC |