Dec 19, 2016, 8:52 AM
Post #1 of 3
pattern with join hangs when printing
This is my first experience using join and I'm wondering why this hangs. If I write it to a file handle, instead of an array it does not hang.
$pattern hangs after it prints out. If I wanted to stop it from hanging and return to command prompt, what is the best way?
my @bfilearr = `$bcmd`;
print "This is @bfilearr";
my $pattern = join '|', @bfilearr;
print "THIS is $pattern\n";