in reply to shifting data to the beginning of an array

One issue is that you're interpolating an array into a string and trying to use the results as a filename to open.

If you intend to open multiple files, one after another, you should wrap your open.... while.... stuff in a foreach block that iterates over the filenames held in @ejectapes.

Also, why are you setting @ARGV but then not using the magical properties of the <> operator? What exactly are you trying to do... maybe we can help you come up with a Perlish solution.


Dave

Replies are listed 'Best First'.
Re^2: shifting data to the beginning of an array
by drock (Beadle) on Jun 16, 2004 at 18:57 UTC
    Dave, this is test code so let me explain... all I want it to do is insert the eject 0,0,0 string one time after the 40 lines are printed on one line, like so: eject 0,0,0 434 343 343 4232 2424 thanks!