gepebril69 has asked for the wisdom of the Perl Monks concerning the following question:
Hi there
What does the code: my @x= (undef)x7; in de example below do?
Are they trying to empty the array?
#!/usr/bin/perl -w use strict; use Win32API::File qw( getLogicalDrives GetVolumeInformation ); my @drives= getLogicalDrives(); foreach my $d ( @drives ) { my @x= (undef)x7; GetVolumeInformation( $d, @x ); print "$d $x[0] ($x[5])\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What does my @x= (undef)x7; do?
by Corion (Patriarch) on Nov 09, 2015 at 14:34 UTC | |
by gepebril69 (Scribe) on Nov 09, 2015 at 15:40 UTC | |
Re: What does my @x= (undef)x7; do?
by toolic (Bishop) on Nov 09, 2015 at 14:35 UTC | |
Re: What does my @x= (undef)x7; do?
by BrowserUk (Patriarch) on Nov 09, 2015 at 14:53 UTC | |
by Athanasius (Archbishop) on Nov 09, 2015 at 15:19 UTC | |
by BrowserUk (Patriarch) on Nov 09, 2015 at 15:32 UTC | |
by betterworld (Curate) on Nov 09, 2015 at 17:53 UTC | |
by AnomalousMonk (Archbishop) on Nov 09, 2015 at 18:34 UTC | |
by BrowserUk (Patriarch) on Nov 10, 2015 at 04:55 UTC | |
|