Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by beech (Parson)
on Sep 13, 2017 at 00:39 UTC ( [id://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

Replies are listed 'Best First'.
Re^2: Split int into segments of max int 26 ( Spreadsheet::Read::cr2cell )
by thanos1983 (Parson) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1199247]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2024-03-28 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found