Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: vec overflow?

by BrowserUk (Pope)
on Jun 25, 2013 at 14:18 UTC ( #1040605=note: print w/replies, xml ) Need Help??


in reply to Re^5: vec overflow?
in thread vec overflow?

vec( $_, $offset, $size ) = 1 for substr( $astring, $start, $len ); has no big advantage over vec( substr( $astring, $start, $len ), $offset, $size ) = 1;

I agree. But I've only very recently 'discovered' nested lvalue subs -- this thread is the first time I've ever used the construct publicly -- and I've never seen it used anywhere else.

I can well imagine that there are lot of silent readers looking at

  • vec( vec( ... ), ... ) = 1;
  • vec( substr(... ), ... ) = 1;
  • substr( vec( ... ), ... ) = $stuff;
  • substr( substr( ...), ... ) = $stuff;
  • substr( vec( substr( vec( substr( ...), ... ), ... ), ... ), ... ) = $something;

and thinking:

"I'd never use such an unholy constructs even if it meant my code running a 1000 times more slowly."

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^7: vec overflow?
by LanX (Chancellor) on Jun 25, 2013 at 14:32 UTC
    Perl never stops to surprise ... I also learned new things again. =)

    > I'd never use such an unholy constructs

    Unholy constructs are like exorcism, only experienced priests should be allowed to and only behind closed doors (subs).

    Who cares how an imported sub bigvec does the workaround as long as it works and is well documented, i.e. has pointers to the perldoc?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040605]
help
Chatterbox?
[1nickt]: ( Sometimes when idle I browse remote corners of the code repo at $work ... usually this yields knowledge of projects to decline and coworkers to avoid ... )
[LanX]: sure
[Corion]: 1nickt: Finding autobox in production would give me pause, yes
[LanX]: efficient survey
[MidLifeXis]: And under MINGW64_NT-6.1 MYHOST 2.6.0(0.304/5/3) 2016-09-09 09:46 x86_64 Msys there seem to be issues with escapes in external build tool calls.
[Corion]: I mean, it's a technical feat it achieves, but... why? ;)
[MidLifeXis]: And it also has the 0.14 version of the tarball in its manifest.
[LanX]: avoiding unreadable brackets
[MidLifeXis]: Although the previous one could be a b0rken PATH, I would need to dig for that.
[thezip]: I've got to go to meetings now. If anyone has further comments regarding Spreadsheet::XLSX deployment to Strawberry Perl 5.24.1, please /msg me -- thanks!

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2017-03-23 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (291 votes). Check out past polls.