Hi list,
I haven't received any response to my last mail - does really nobody
have any idea for a solution to my problem (see below)? I would very
much appreciate any input.
Regards,
Nora
> > However, part of the answer is knowing the question. If this doesn't
> > do the trick for you, a more
Shawn H Corey writes:
> Harry Putnam wrote:
>> So it needs to be up to the user but most often any files in the
>> directory will not be of concern.
In fact, thinking about that the script should not only ask
permission, but should probably should offer to clear the directory
before making a
> "ANJAN" == ANJAN PURKAYASTHA writes:
ANJAN> OK, suppose I develop a Perl application. I want to create an icon for
the
ANJAN> program so that a user may download the program and start it in the GUI
by
ANJAN> double-clicking on the icon.
Did I miss something? Where did you say "windows"
Harry Putnam wrote:
> So it needs to be up to the user but most often any files in the
> directory will not be of concern.
Well, if you're not worried about hidden files, you could use glob:
my $count = scalar glob( "$dir/*" );
--
Just my 0.0002 million dollars worth,
Shawn
Programming
"Uri Guttman" writes:
>> "HP" == Harry Putnam writes:
>
> HP> But all I'm asking here is for the easiest way to see if the receiving
> HP> directory is empty.
>
> HP> The code I've devised seems pretty clunky (I haven't tested the script
> HP> yet since I'm writing several other part
Robert Wohlfarth writes:
> The "-e" test will tell you if the target file already exists. For example:
> if (-e $copyToFile) {
> # Add extension here...
> }
Nice... much better. That test would come in handy instead of comparing the
whole list of files to the current one incoming. It wou
I've contacted module author on that matter and it turned out there
was a bug in OIO 3.59. Fixed version 3.63 is already available on
CPAN.
--
menth0l
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On Sun, Mar 7, 2010 at 11:37 AM, Harry Putnam wrote:
> I want to know if the receiving directory is empty of actual files.
> Since if it is not; then first the user must be asked if she wants to
> continue, if so, then a subfunction must be employed to ensure nothing
> is clobbered.
>
> The subfu
> "HP" == Harry Putnam writes:
HP> But all I'm asking here is for the easiest way to see if the receiving
HP> directory is empty.
HP> The code I've devised seems pretty clunky (I haven't tested the script
HP> yet since I'm writing several other parts right now, so not even sure
HP>
Shawn H Corey writes:
Harry Putnam wrote:
>> Is there a simple test to determine if a directory is empty or not?
>>
>> Or do you have to opendir, readdir, or something similar with a full
>> block.
>>
>>
>
> That depends on what you mean by empty. On Linux, even empty
> directories have . an
Jeremiah Foster wrote:
"Unix processes are one of two techniques for achieving reliable concurrency and
parallelism in server applications. Threads are out. You can use processes, or
async/events, or both processes and async/events, but definitely not threads. Threads are
out."
For people w
>
> This isn't a Perl script. This is a shell script to be executed by
> whichever shell lives at /usr/bin/sh on your system. It sets the shell
> variables ORACLE_HOME and LD_LIBRARY PATH, and then calls /bin/perl to
> re-evaluate the file. When the perl interpreter reads the file, it
> ignores the
Thanks Sanket,
So if this script is run on a Unix box, everything after the second #
would be treated as a comment, right?
#!/usr/bin/sh -- # -*- perl -*-
So, actually, it's #!/usr/bin/sh --
Isn't it?
Regards,
-Murali
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additiona
Harry Putnam wrote:
> Is there a simple test to determine if a directory is empty or not?
>
> Or do you have to opendir, readdir, or something similar with a full
> block.
>
>
That depends on what you mean by empty. On Linux, even empty
directories have . and ..
Why do you want to test for th
Is there a simple test to determine if a directory is empty or not?
Or do you have to opendir, readdir, or something similar with a full
block.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
I completely agree with you Raymond- we should not be pre-judged based on
our nationalities or institutional affiliations.
Also, IMHO, the only stupid question is the one that is not asked. Forum
members, especially beginners, should feel comfortable posting questions
without fear of ridicule.
Anj
16 matches
Mail list logo