jayendrapatil / kubernetes-exercises

Collection covers kubernetes exercises categorized topics-wise and referred back to the individual Kubernetes certification exams.
MIT License
261 stars 102 forks source link

Can't use an undefined value as an ARRAY reference at /usr/local/lib/perl5/5.36.0/Math/BigInt/Calc.pm #3

Closed dgofman closed 11 months ago

dgofman commented 2 years ago

By running an example https://github.com/jayendrapatil/kubernetes-exercises/blob/main/topics/jobs.md

kubectl create job pi --image=perl -- perl -Mbignum=bpi -wle 'print bpi(2000)'

on

https://killercoda.com/killer-shell-ckad/scenario/kubectl-contexts

I got an error

Can't use an undefined value as an ARRAY reference at /usr/local/lib/perl5/5.36.0/Math/BigInt/Calc.pm line 1049.

Suggest specifying the perl version 5.34.

kubectl create job pi --image=perl:5.34 -- perl -Mbignum=bpi -wle 'print bpi(2000)'

jayendrapatil commented 11 months ago

Thanks for the feedback, tested it again on killercoda and works fine.