.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,
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
=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
^_^. 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
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
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
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
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
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
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
>
> 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
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?
> * 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,
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
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
: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
16 matches
Mail list logo