in reply to Reaped: Re^2: Can't figure out how to include LAST member of the array
in thread Can't figure out how to include LAST member of the array

dude, please stop pretending like you understand perl code, or indeed programming at all. Your response is completely wrong.

  • Comment on Re^3: Can't figure out how to include LAST member of the array

Replies are listed 'Best First'.
Re^4: Can't figure out how to include LAST member of the array
by perlynewby (Scribe) on Feb 09, 2021 at 21:06 UTC

    Oh, I'm sorry. I am learning by practicing stuff out; I usually do printing of the values as I go then arrange those somehow before my next subroutine. Here, I just could come up with a good way to get the last element of what will be -(what I think...maybe)- it will be a hash to reference sizes of each polygon. I appreciate the help. Thanks!

      perlynewby the above comment was not directed to you.

      Note that $i <= ($End-1) can be simplified to $i < $End and also you can use single quotes inside double quotes so that you don't have to escape double quotes print "aaa\"xx\"zzz\n"; print "aaa'xx'zzz\n";

      I hope Perl helps you automate

        I am using these suggestions to make my code read better. I updated the validation of inputs by using the die fuction. I updated the loop to include the "unless" condition( I thought this was a nice method.).

        Next step, is to take user input for each Metal polygon to be drawn and make sure these dimensions are within the predetermined limits.

        Then work on adding the dimensions of the via by user and test those against its limit.

        finally, check that via are laid out within the dimensions of each Metal that sandwiches it.

        I think I want to reference each Metal layer to a table when testing its limits by using a hash, What do you think?