Every line that has $1 on it gives me a "use of uninitialized value in concantination" error that I can't seem to get rid of. i'm writing a script that creates logical drives after detecting a hard disk drive's capacity.
here's my loop:
!c:/Perl/bin/perl.exe -w use strict ; use warnings ; use English ; # required to use long variable names use vars if ( /^ArraySize (.+)/ ) { print "\nArray: " . $1 . " yields a LUN of " . int($1/$luns_per_arr +ay) . "GB\n" ; $logical_size = int($1/2); if ( ( $logical_size * $luns_per_array ) == $1 ) {$logical_size--;} }
In reply to problems with global $1 by neo1491
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |