[Mojolicious] is_file

2015-05-26 Thread Andrew
.txt'); if ($parts_txt_file_ref->is_file) { #do something }; And I changed it to this, which worked: my $parts_path= $variable_containing_path.'/parts.txt'; if (-e $parts_path && !-d $parts_path) { #do something }; Anyway, pretty happy to have joined this group,

Re: [Mojolicious] is_file

2015-05-27 Thread Andrew
So is_file checks if a Mojo::Asset is a Mojo::Asset::File. =) Many Thanks, Yours, Andrew. - Original Message - From: Justin Hawkins To: mojolicious@googlegroups.com Sent: Wednesday, May 27, 2015 2:46 AM Subject: Re: [Mojolicious] is_file On 27 May 2015, at 8:47

Re: [Mojolicious] is_file

2015-05-27 Thread Andrew
=D That's so awesome! ^_^ Many thanks, =). - Original Message - From: sri To: mojolicious@googlegroups.com ; mojoliciousgr...@unitedgames.co.uk Cc: mojoliciousgr...@unitedgames.co.uk Sent: Wednesday, May 27, 2015 5:05 PM Subject: Re: [Mojolicious] is_file I was thinki

Re: [Mojolicious] Upgrade from 4.22 to 6.11

2015-05-28 Thread Andrew
^_^. Haha. Nonetheless, I will share what I learnt / did. Instead of using: my @list_of_all_params = $self->param(); ... to get a list of all the names of all the fields submitted, I had to change it to: my @list_of_all_params = @{$self->req->params->names}; Hope this help

Re: [Mojolicious] Upgrade from 4.22 to 6.11

2015-05-28 Thread Andrew
AM, Andrew wrote: Hurrah! I'm a n00b - but had this exact problem the other week, =). I popped onto the London Perl Mongers group, and managed to solve the problem, with a bit of help from them. [Under a thread called - Trouble accessing POST&GET data]. That was

Re: [Mojolicious] perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-21 Thread Andrew
Hello, You can type: cpanm -V ...to see where modules you install with cpanm will go. You can type: perlbrew switch ...to see what perl version you are currently using, and you can use perlbrew info ...to get the path for the current perlbrew. You can type: perlbrew list ...to see what perl versi

Re: [Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-23 Thread Andrew
olicious@googlegroups.com Sent: Monday, November 23, 2020 2:49 AM Subject: Re: [Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ? Thanks Andrew and gugod. I am making progress, I have things running, but not completely understood. I think where I possibly messed u

[Mojolicious] Preventing decoding of HTML entities of extended characters

2014-06-20 Thread Andrew Beverley
I'm using Mojo::DOM to modify HTML text in the bodies of emails. In some emails, the encoding of the email may be a reduced character set, but with HTML entities within it that are for extended characters outside the email body's encoding. The problem I have is that Mojo::DOM decodes these extende

Re: [Mojolicious] Wishlist thread (second edition)

2014-07-12 Thread andrew fresh
put in the form when I mostly want defaults. l8rZ, -- andrew - http://afresh1.com The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall -- You received this message because you are subscribed to the Google Groups "Mojolicious" group

Re: [Mojolicious] Wishlist thread (second edition)

2014-07-13 Thread andrew fresh
the first form on the page perl -Mojo -E 'say g("http://localhost:3000";)->res->forms ->submit( user => "me", pass => "sekret" )->dom->at("title")->text'; l8rZ, -- andrew - http://afresh1.com Hey, I think I see a b

Re: [Mojolicious] Wishlist thread (second edition)

2014-07-13 Thread andrew fresh
> > And how does the response reference the user agent? Sadly, no answer to that :-( l8rZ, -- andrew - http://afresh1.com Computer Science: solving today's problems tomorrow. -- You received this message because you are subscribed to the Google Groups "Mojolicious" gro

[Mojolicious] How to get hook after sending page data to user (for not make him wait)? Something like PerlCleanupHandler in grandfather's mod_perl ;-)

2015-12-27 Thread Andrew Nugged
My app done with rendering, I want it send user all data, and _only then_ I want it to do some special DB requests and stats collection procedures and cleanups to finalize request, but not to increase latency for client. How to do that? There is seems no hooks further than after_dispatch, right?

Re: [Mojolicious] How to get hook after sending page data to user (for not make him wait)? Something like PerlCleanupHandler in grandfather's mod_perl ;-)

2015-12-28 Thread Andrew Nugged
> * Minions > Thought about them before, but I planning use them for more complicated things, not for simpler "drop update for pageloads counter up" or "scratch a data packet in statlog about this request", it's overhead, and stands too much far away as for me from current request in future,

[Mojolicious] mojolicious template if statement

2018-03-05 Thread Andrew Morgan
Hello All, I have the below code, but the if statement is not functioning.No matter what my selection is in the browser it returns "you entered correct car " Please assist.Thank you use Mojolicious::Lite; get '/' => sub { my $self = shift; $self->render('index'); }; post '/action' => s

[Mojolicious] Re: mojolicious template if statement

2018-03-06 Thread Andrew Morgan
Argh..lol, thank you very much..rookie mistake. Thank you On Monday, 5 March 2018 22:51:23 UTC-5, Andrew Morgan wrote: > > Hello All, > > I have the below code, but the if statement is not functioning.No matter > what my selection is in the browser it returns "you

Re: [Mojolicious] Nordic Perl Workshop and Mojoconf in Oslo

2018-05-09 Thread Andrew Nugged
:thumbs_up: We're coming up (me & Peter)! From Oulu :P. // Andrew -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@g