Jump to content

Hi Here is my resistor color code script from python reworked for perl It was interesting to f...


G+_jerry coffey
 Share

Recommended Posts

Hi

Here is my resistor color code script from python reworked for perl. 

It was interesting to find that you reference an array with @ to declare it and $ to use elements.

It was also interest to find that when printing, if you want to do math you must put it outside the quotes or just do the math outside the print statement and then use a variable inside the quotes, as I did here.

 

It did not take much changing and only some internet research to get the input method.

https://github.com/jcoffey42/coding101/blob/master/perl001.pl

Link to comment
Share on other sites

 Share

×
×
  • Create New...