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

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'


Comment on Re: moving files
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2015-07-03 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls