Hi All,
I would like to do a Send Notify when a program of mine
crashes.
How do I trap a crash?
Is there a way to see some of the local variables in the
sub that crashes with the trap?
Many thanks,
-T
--
~~
Computers are like air conditioners.
They malfun
Hi All,
How do I do a hash inside a hash?
So far I have:
$ p6 'my %Vendors=("acme" => ( "ContactName" => "Larry, "AccountNo" =>
1234 ) ); say %Vendors;'
===SORRY!=== Error while compiling -e
I want to be able to have both a Contact Name and and AccountNo
associated with each key in %Vendors
Perhaps https://docs.perl6.org/language/exceptions#Catching_exceptions could be
enlightening?
> On 11 Jan 2019, at 18:54, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> I would like to do a Send Notify when a program of mine
> crashes.
>
> How do I trap a crash?
>
> Is there a way to
>> Hi All,
>>
>> I would like to do a Send Notify when a program of mine
>> crashes.
>>
>> How do I trap a crash?
>>
>> Is there a way to see some of the local variables in the
>> sub that crashes with the trap?
>>
>>
>> Many thanks,
>> -T
On 1/11/19 10:56 AM, Elizabeth Mattijsen wrote:
Perhaps
What would you say is the error, according to where the arrow points to?
Maybe some unclosed double quotes?
El vie., 11 ene. 2019 a las 19:57, ToddAndMargo via perl6-users (<
perl6-us...@perl.org>) escribió:
> Hi All,
>
> How do I do a hash inside a hash?
>
> So far I have:
>
> $ p6 'my %Vendors=
Hi Todd,
the error you're getting comes from a closing quotation mark missing
after "Larry
You will also need to give perl6 some hint that you want the list of
pairs to actually become a hash.
To do that, I would recommend just putting a % in front of the ()
The working code looks like this:
p
On 1/11/19 11:09 AM, Timo Paulssen wrote:
Hi Todd,
the error you're getting comes from a closing quotation mark missing
after "Larry
You will also need to give perl6 some hint that you want the list of
pairs to actually become a hash.
To do that, I would recommend just putting a % in front of
> On Jan 11, 2019, at 12:41 PM, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> How do I do a hash inside a hash?
>
> So far I have:
>
> $ p6 'my %Vendors=("acme" => ( "ContactName" => "Larry, "AccountNo" => 1234 )
> ); say %Vendors;'
> ===SORRY!=== Error while compiling -e
>
>
>
On 1/11/19 11:07 AM, JJ Merelo wrote:
What would you say is the error, according to where the arrow points to?
Maybe some unclosed double quotes?
El vie., 11 ene. 2019 a las 19:57, ToddAndMargo via perl6-users
(mailto:perl6-us...@perl.org>>) escribió:
Hi All,
How do I do a hash insi
On 1/11/19 11:12 AM, ToddAndMargo via perl6-users wrote:
On 1/11/19 11:09 AM, Timo Paulssen wrote:
Hi Todd,
the error you're getting comes from a closing quotation mark missing
after "Larry
You will also need to give perl6 some hint that you want the list of
pairs to actually become a hash.
T
On 1/11/19 11:16 AM, Bruce Gray wrote:
On Jan 11, 2019, at 12:41 PM, ToddAndMargo via perl6-users
wrote:
Hi All,
How do I do a hash inside a hash?
So far I have:
$ p6 'my %Vendors=("acme" => ( "ContactName" => "Larry, "AccountNo" => 1234 )
); say %Vendors;'
===SORRY!=== Error while comp
I think you want $x, not $Ace.
Cheers
El vie., 11 ene. 2019 a las 20:26, ToddAndMargo via perl6-users (<
perl6-us...@perl.org>) escribió:
> On 1/11/19 11:16 AM, Bruce Gray wrote:
> >
> >
> >> On Jan 11, 2019, at 12:41 PM, ToddAndMargo via perl6-users <
> perl6-us...@perl.org> wrote:
> >>
> >> Hi
On 1/11/19 11:33 AM, JJ Merelo wrote:
I think you want $x, not $Ace.
Cheers
Yup. I am on fire today! :'(
Still can't get it figured out. :'( :'(
$ p6 'my $x="Ace"; my %Vendors=("acme" => { "ContactName" => "Larry",
"AccountNo" => 1234 }, "Ace" => { "ContactName" => "Mo", "AccountNo" =>
On 1/11/19 11:39 AM, ToddAndMargo via perl6-users wrote:
On 1/11/19 11:33 AM, JJ Merelo wrote:
I think you want $x, not $Ace.
Cheers
Yup. I am on fire today! :'(
Still can't get it figured out. :'( :'(
$ p6 'my $x="Ace"; my %Vendors=("acme" => { "ContactName" => "Larry",
"AccountNo" =>
You don't need to quote "%Vendors<{"$x"}>"By doing so, you're
closing the quotes right behind {
Cheers
El vie., 11 ene. 2019 a las 20:39, ToddAndMargo via perl6-users (<
perl6-us...@perl.org>) escribió:
> On 1/11/19 11:33 AM, JJ Merelo wrote:
> > I think you want $x, not $Ace.
> >
> > Cheers
>
>
Short answer: use `%hash{$var}`, not `%hash<$var>`.
When they are not in position to be less-than and greater-than comparison
operators, the pair of left and right angle brackets are a circumfix operator
that work like Perl 5’s “quote word” op: `qw()`.
In Perl 6, `<>` are used a lot, including
> On Jan 11, 2019, at 1:39 PM, ToddAndMargo via perl6-users
> wrote:
>
> On 1/11/19 11:33 AM, JJ Merelo wrote:
>> I think you want $x, not $Ace.
>> Cheers
>
> Yup. I am on fire today! :'(
>
> Still can't get it figured out. :'( :'(
>
> $ p6 'my $x="Ace"; my %Vendors=("acme" => { "Conta
On 1/11/19 11:43 AM, ToddAndMargo via perl6-users wrote:
On 1/11/19 11:39 AM, ToddAndMargo via perl6-users wrote:
On 1/11/19 11:33 AM, JJ Merelo wrote:
I think you want $x, not $Ace.
Cheers
Yup. I am on fire today! :'(
Still can't get it figured out. :'( :'(
$ p6 'my $x="Ace"; my %Vend
On 1/11/19 11:50 AM, Bruce Gray wrote:
'my $x = "Ace"; my %Vendors = ( acme => { ContactName => "Larry", AccountNo => 1234 }, Ace => { ContactName =>
"Mo", AccountNo => "A102" } ); say %Vendors{$x} ~ "\t" ~ %Vendors{$x};’
Hi Bruce,
Sweet! Thank you!
$ p6 'my $x = "Ace"; my %Vendors = ( acme
On 1/11/19 11:45 AM, Bruce Gray wrote:
Short answer: use `%hash{$var}`, not `%hash<$var>`.
When they are not in position to be less-than and greater-than comparison
operators, the pair of left and right angle brackets are a circumfix operator
that work like Perl 5’s “quote word” op: `qw()`.
I
On 1/11/19 11:50 AM, ToddAndMargo via perl6-users wrote:
On 1/11/19 11:43 AM, ToddAndMargo via perl6-users wrote:
On 1/11/19 11:39 AM, ToddAndMargo via perl6-users wrote:
On 1/11/19 11:33 AM, JJ Merelo wrote:
I think you want $x, not $Ace.
Cheers
Yup. I am on fire today! :'(
Still can't
That may work, but is bad practice.
Instead of:
%Vendors<< $x >>
, please use:
%Vendors{$x}
The relation of `<<…>>` is to `<…>` as double-quotes are to single-quotes;
doubling up changes from non-interpolating to interpolating.
To say `%Vendors<< $x >>` is to take the shortcut in
On 1/11/19 11:59 AM, Bruce Gray wrote:
That may work, but is bad practice.
no fooling! look like hell too
Hi All,
Anyone know if someone has written a program like this
in Perl that will run locally and not require the Internet?
http://www.subnet-calculator.com/
Many thanks,
-T
http://jodies.de/ipcalc
Download link at bottom of page.
On Fri, Jan 11, 2019 at 3:08 PM ToddAndMargo via perl6-users <
perl6-us...@perl.org> wrote:
> Hi All,
>
> Anyone know if someone has written a program like this
> in Perl that will run locally and not require the Internet?
>
> http://www.s
> On Jan 11, 2019, at 2:07 PM, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> Anyone know if someone has written a program like this
> in Perl that will run locally and not require the Internet?
>
> http://www.subnet-calculator.com/
>
>
> Many thanks,
> -T
I have not used it, but
On Fri, Jan 11, 2019 at 3:08 PM ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
Hi All,
Anyone know if someone has written a program like this
in Perl that will run locally and not require the Internet?
http://www.subnet-calculator.com/
Many thanks,
On 1/11/19 1:56 PM, Bruce Gray wrote:
On Jan 11, 2019, at 2:07 PM, ToddAndMargo via perl6-users
wrote:
Hi All,
Anyone know if someone has written a program like this
in Perl that will run locally and not require the Internet?
http://www.subnet-calculator.com/
Many thanks,
-T
I have no
Hi All,
Now what am I doing wrong? I need to convert the value in a
hash to a string:
$ p6 'my $x = "acme"; my Str $y; my %Vendors = ( acme => ContactName =>
"Larry" ); $y= %Vendors; say $y;'
Type check failed in assignment to $y; expected Str but got Any (Any)
in block at -e line 1
$ p6
Hello,
How do I properly write a link to a module in a POD documentation? Actually,
the question is even more complex as it might be both a module and a .pod.
The documentation (https://docs.perl6.org/language/pod) isn't clear on this
subject. When it comes to `L<>` docs are mostly focused on U
On Fri, Jan 11, 2019 at 19:09 ToddAndMargo via perl6-users <
perl6-us...@perl.org> wrote:
> Now what am I doing wrong? I need to convert the value in a
> hash to a string:
>
> $ p6 'my $x = "acme"; my Str $y; my %Vendors = ( acme => ContactName =>
> "Larry" );
Try eliminating “acme =>” for a st
On 1/11/19 5:08 PM, ToddAndMargo via perl6-users wrote:
Hi All,
Now what am I doing wrong? I need to convert the value in a
hash to a string:
$ p6 'my $x = "acme"; my Str $y; my %Vendors = ( acme => ContactName =>
"Larry" ); $y= %Vendors; say $y;'
Type check failed in assignment to $y; expec
On 1/11/19 5:59 PM, Tom Browder wrote:
On Fri, Jan 11, 2019 at 19:09 ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
Now what am I doing wrong? I need to convert the value in a
hash to a string:
$ p6 'my $x = "acme"; my Str $y; my %Vendors = ( acme => ContactNa
On Fri, Jan 11, 2019 at 20:15 ToddAndMargo via perl6-users <
perl6-us...@perl.org> wrote:
...
> $p6 'my $x = "acme"; my %Vendors = ( acme => { ContactName => "Larry",
> AccountNo => 1234 } ); my Str $y = %Vendors{$x}.Str; say $y;'
In my experience, it helps often to avoid using strict typing unles
> On Jan 11, 2019, at 7:08 PM, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> Now what am I doing wrong? I need to convert the value in a
> hash to a string:
>
> $ p6 'my $x = "acme"; my Str $y; my %Vendors = ( acme => ContactName =>
> "Larry" ); $y= %Vendors; say $y;'
> $ p6 'my $
On 1/11/19 6:23 PM, Tom Browder wrote:
On Fri, Jan 11, 2019 at 20:15 ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
...
> $p6 'my $x = "acme"; my %Vendors = ( acme => { ContactName => "Larry",
> AccountNo => 1234 } ); my Str $y = %Vendors{$x}.Str; say
$y;'
In my experienc
$a is short for $a{'a','b'}
This also happens in string literals
my $a = { a => 1, b => 2 };
say "$a"; # 1 2
say "$a{'a','b'}"; # 1 2
A simple way to stop this is to add a backslash
my $a = 'b'
say "$a\"; # b
You can also call methods on variables in string literals, as lon
On 1/11/19 6:35 PM, Bruce Gray wrote:
On Jan 11, 2019, at 7:08 PM, ToddAndMargo via perl6-users
wrote:
Hi All,
Now what am I doing wrong? I need to convert the value in a
hash to a string:
$ p6 'my $x = "acme"; my Str $y; my %Vendors = ( acme => ContactName => "Larry" );
$y= %Vendors; s
On 1/11/19 6:49 PM, Brad Gilbert wrote:
$a is short for $a{'a','b'}
This also happens in string literals
my $a = { a => 1, b => 2 };
say "$a"; # 1 2
say "$a{'a','b'}"; # 1 2
A simple way to stop this is to add a backslash
my $a = 'b'
say "$a\"; # b
You can also call
On 1/11/19 6:51 PM, ToddAndMargo via perl6-users wrote:
On 1/11/19 6:49 PM, Brad Gilbert wrote:
$a is short for $a{'a','b'}
This also happens in string literals
my $a = { a => 1, b => 2 };
say "$a"; # 1 2
say "$a{'a','b'}"; # 1 2
A simple way to stop this is to add a backslash
Actually, we had that functionality, but it was recently eliminated by
Richard Hainsworth since, as a matter of fact, there are no specs on what
to actually do with them. And it was eliminated for several reasons, one of
which is that MetaCPAN does not display Pod6, but the main reason is that
ther
41 matches
Mail list logo