|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Script to convert HBA WWNs to lowercase and add ":"by Not_a_Number (Parson) |
| on Dec 18, 2011 at 19:21 UTC ( #944193=note: print w/ replies, xml ) | Need Help?? |
|
IMO, your script would be more useful if it included some input validation. After the line: chomp ($wwn=<STDIN>);I would suggest adding:
Update: changed allowed input length from 10 (where did I get that number from?) to 16, as per WWN spec.
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||