Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-06-18 16:28 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.