Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: writing the finding result into a file.txt

by clueless newbie (Chaplain)
on Mar 28, 2012 at 17:34 UTC ( #962233=note: print w/replies, xml ) Need Help??

in reply to Re^2: writing the finding result into a file.txt
in thread writing the finding result into a file.txt

I'm assuming you're on Windows. Perhaps you don't have a "C:\temp"? (Be careful to either use "C:/temp" note the use of double quotes and the forward slash or to use 'C:\temp' single quote and backslash. If you double quote and backslash you'll have to escape the backslash i.e. "c:\\temp". Also: add a my to the $dir as in
my $dir='c:\temp';

Replies are listed 'Best First'.
Re^4: writing the finding result into a file.txt
by The Mass (Initiate) on Mar 28, 2012 at 18:10 UTC
    thanks bro , it is work done
    but I have a small question :
    why when we add a my to $dir , it is work done ??
    and without it , it doesn't work?
    please answer my small question .
    thanks again for your helping :)
      Try this tutorial: Use strict and warnings
      Also read about scope and lexicals. Lot of stuff, but you need it to step further.
      And most importantly: Have fun! :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962233]
[erix]: ( also: UniCorn Throne )
[zentara]: erix I hope both tusks pointed in the same direction :-)
LanX "♪..♫ Last night a DJ killed my wife ♪..♫ "
zentara...oO 1 more reason I prefer Perl to Python is I can't believe how long Python takes to compile, and you can't disable the myriad of tests
[LanX]: so that's where you've been the last two years? Compiling Python?
[zentara]: LanX no! I was learning why Krishna made me into a unicorn. :-)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-03-30 16:47 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (361 votes). Check out past polls.