Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
P is for Practical
 
PerlMonks  

Re^2: Sorting files you Have read

by brusimm (Pilgrim)
on Nov 16, 2006 at 23:07 UTC ( #584628=note: print w/ replies, xml ) Need Help??


in reply to Re: Sorting files you Have read
in thread Sorting files you Have read

Hey swampyankee, thank you, but when I run the script, I get the following

Global symbol "@unsorted" requires explicit package name at one-c.pl line 6.
Global symbol "@unsorted" requires explicit package name at one-c.pl line 7.
Global symbol "@sorted" requires explicit package name at one-c.pl line 10.
Global symbol "@unsorted" requires explicit package name at one-c.pl line 10.
Execution of one-c.pl aborted due to compilation errors.

I am on an XP machine, if that has any bearing, but would there be something else amiss with my installation?

The reason i ask is my first responder suggested some code and that looked like it ran successfully, but did not translate any result to the screen or a file.
Now your code returns errors... hmm

Any other thoughts?


Comment on Re^2: Sorting files you Have read
Re^3: Sorting files you Have read
by swampyankee (Parson) on Nov 16, 2006 at 23:36 UTC

    I cleverly forgot to declare @unsorted and @sorted. This is why one should (a) test code before posting and (b) use strict; and use warnings;.

    They do wonders to prevent things like:

    @array = (1,2,3,4,5,6,7,8,9); $sum+= $_ foreach @array; $mean = $sum/scalar(@aray);

    (Yes, I know scalar(@aray) is 0.)

    emc

    At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

    —Igor Sikorsky, reported in AOPA Pilot magazine February 2003.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-04-21 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (490 votes), past polls