mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Remove smart match and lexical $_ for compatibility with perl 5.18. #1216
This commit is contained in:
parent
8c40cefe1e
commit
43814e99f6
3 changed files with 5 additions and 5 deletions
|
@ -1141,7 +1141,7 @@ sub set {
|
|||
my ($opt_key, $value, $deserialize) = @_;
|
||||
|
||||
# handle legacy options
|
||||
return if $opt_key ~~ @Ignore;
|
||||
return if first { $_ eq $opt_key } @Ignore;
|
||||
if ($opt_key =~ /^(extrusion_width|bottom_layer_speed|first_layer_height)_ratio$/) {
|
||||
$opt_key = $1;
|
||||
$opt_key =~ s/^bottom_layer_speed$/first_layer_speed/;
|
||||
|
@ -1413,7 +1413,7 @@ sub read_ini {
|
|||
|
||||
my $ini = { _ => {} };
|
||||
my $category = '_';
|
||||
while (my $_ = <$fh>) {
|
||||
while (<$fh>) {
|
||||
s/\R+$//;
|
||||
next if /^\s+/;
|
||||
next if /^$/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue