Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: reading files in @ARGV doesn't return expected output

by zentara (Archbishop)
on Jun 27, 2017 at 13:06 UTC ( [id://1193687]=note: print w/replies, xml ) Need Help??


in reply to reading files in @ARGV doesn't return expected output

print "$list$a$b "; prints only first file and nothing else

I don't know if you are aware of it, but one obscure rule in Perl is do not use $a and $b as variables, because they interfere with Perl's sort function. I don't think it's a problem here, but it could be that sort is invoked internally, and your $a and $b are getting messed up. Try changing those variable names.


I'm not really a human, but I play one on earth. ..... an animated JAPH
  • Comment on Re: reading files in @ARGV doesn't return expected output

Replies are listed 'Best First'.
Re^2: reading files in @ARGV doesn't return expected output
by fasoli (Beadle) on Jun 27, 2017 at 13:14 UTC
    Good catch. No it hasn't created a problem here yet, thankfully. I will change them though. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1193687]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-25 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found