Global search and replace inside string

2017-03-22 Thread Chris Ramsey
Hey all, I'm working on learning Perl 6 and am trying to write a little utility that will do a simple search and replace. Could knock this out in a few other languages quickly, but I really want to get to know Perl 6 better :) Anyway, so here's some pseudocode that I need some help writing. my $

Re: Global search and replace inside string

2017-03-22 Thread Chris Ramsey
Ah yeah, that would do it then! Thanks so much! On Wed, Mar 22, 2017, 11:55 AM Brandon Allbery wrote: > On Wed, Mar 22, 2017 at 2:50 PM, Chris Ramsey > wrote: > > my $str = "some string with 'text' in it and more text"; > say $str.subst(/'.*'/, &quo

Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
I've been googling a bunch but can't find diddly for creating ncurses style interactive terminals in Perl 6. Sorry for such a vague question, but are there built-in modules for such a thing, and if so, what is it called so I can dive through the docs? Thanks!

Re: Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
Just found those a few minutes ago actually. I might have to give them a shot. Thanks! On Tue, Mar 28, 2017, 7:58 PM Lloyd Fournier wrote: > https://github.com/azawawi/perl6-ncurses > https://github.com/kuerbis/Term-Choose-p6 > > Have you seen those? > > On Wed, Mar 29, 201

Re: Perl6 on USB key?

2017-10-14 Thread Chris Ramsey
Not really, unless you're just adding the binary and libraries to the stick and calling it from there instead of /usr/bin. If you want something that can run on it's own, I'd recommend using a Raspberry Pi Zero and 'converting' that to a USB stick. You'll have full linux-y goodness and be able to

Re: Perl6 on USB key?

2017-10-14 Thread Chris Ramsey
any real issues and this would be basically the same. On Sat, Oct 14, 2017, 10:20 AM Philippe de Rochambeau wrote: > Hi Chris, > thanks for your feedback. > Can you plug the Pi Zero converted to an USB stick into a Windows machine > and run Perl6 scripts residing on the latter? > >