Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Split int into segments of max int 26 ( Spreadsheet::Read::cr2cell )

by beech (Priest)
on Sep 13, 2017 at 00:39 UTC ( #1199247=note: print w/replies, xml ) Need Help??


in reply to Split int into segments of max int 26

Hi,

The spreadsheet modules have code to do this for you

use Data::Dump qw/ dd /; use Spreadsheet::Read qw( cr2cell ); for my $pair ( [0,0], [1,1], [12,12], [25,25], [26,26], [66,66], [666,666], [6666,6666], ) { dd( cr2cell( @$pair ) , @$pair ); } __END__ ("", 0, 0) ("A1", 1, 1) ("L12", 12, 12) ("Y25", 25, 25) ("Z26", 26, 26) ("BN66", 66, 66) ("YP666", 666, 666) ("IVJ6666", 6666, 6666)

update:https://metacpan.org/pod/Spreadsheet::Read#cr2cell

  • Comment on Re: Split int into segments of max int 26 ( Spreadsheet::Read::cr2cell )
  • Download Code

Replies are listed 'Best First'.
Re^2: Split int into segments of max int 26 ( Spreadsheet::Read::cr2cell )
by thanos1983 (Priest) on Sep 13, 2017 at 07:42 UTC

    Hello beech,

    I read quickly this function when I was reading the module and to be honest I did not even thought about going back and reading it again. I am so naive some times.

    Thanks a lot for pointing this out.

    BR / Thanos

    Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199247]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-10-20 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?