- or download this
if ($_ =~ /^xa1/) {
- or download this
sub getsub
{
...
print if /\.subckt $sub/ .. /\.ends/;
}
}
- or download this
use strict;
use warnings;
...
}
close $fh or die "Could not close file: $!";
- or download this
2:55 >perl 1032_SoPW.pl subs.txt
line found to be xa1 a s f a1
...
.ends
2:56 >
- or download this
while ((my $nxt = readline($fh)) =~ /^\+/)
- or download this
while (!eof && (my $nxt = readline($fh)) =~ /^\+/)