Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: moving files

by tobyink (Abbot)
on Oct 16, 2012 at 07:19 UTC ( #999237=note: print w/replies, xml ) Need Help??

in reply to moving files

Is your system command inside the loop? (That is, before the closing }.) It should be.

Also you seem to inconsistently refer to $fil_nm and $filnm; these are different variable names, so if you mix them up randomly in your code, that will cause odd results.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: moving files
by Anonymous Monk on Oct 16, 2012 at 07:21 UTC
    by mistake i've typed $fil_nm in two ways my variable is $fil_nm only
Re^2: moving files
by Anonymous Monk on Oct 16, 2012 at 07:29 UTC
    no my system command is outside the loop and i want to move the $fil_nm files to reports directory only after completing the foreach loop outside that system command is present . i'm facing this problem help me over this

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2016-10-26 10:33 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (340 votes). Check out past polls.