LameNerd has asked for the wisdom of the Perl Monks concerning the following question:
Does some monk out there have a better way of doing thismy $userid; my $password; while(<DATA>) { next if /^#/; ($userid, $password) = split /=/; } print "$userid:$password\n"; __DATA__ #user=passwd test=prrft5142
|
---|