-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tony Heal wrote:
> Why doesn't this work? I want to take any leading or trailing white spaces
> out. If I remove the remark it works, but I
> do not understand why it requires the second line
For reference, perldoc perlre and search for greedy.
Basic
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ryan Dillinger wrote:
> Hello,
> I have written this script. I have a good understanding of all but line:
> $return = ($end - $start) / $start * 100;
If you start with 1000 and end with 900, you have:
(900 - 1000) / 1000 * 100 = -100 / 1000 * 100 = -0.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rick wrote:
> Ok so the boss wants me to create two scripts in perl and I don't even
> know where to begin.
>
>
>
> One is to copy a log file to a backup server every hour.
>
>
>
> And the second is to restore the backup from one server from the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mário Gamito wrote:
> My question is how do i change all ocorrences of the string ".html" to
> ".php" inside all the files to change the links for all pages in a snap ?
Awww, use Perl to change the links, but use PHP for server-side
scripting, huh? :(
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gladstone Daniel - dglads wrote:
> I have a text file that can be anywhere from 40,000 lines to 120,000
> Lines,
>
> I want it to split the file so that no file is larger then 20,000 lines
>
> 1) run a line count
> 2) split the file into pieces
No
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dukelow, Don wrote:
> Does anyone have a favorite method the checks for existence of a file or
> directory on remote system. I know it can be done with a system call, but
> can Perl do it within its self?
If you look in perldoc -f -X, there is a list
On 5/31/06, Nishi Bhonsle <[EMAIL PROTECTED]> wrote:
I have the following script that takes in an input file, output file and
replaces the string in the input file with some other string and writes out
the output file.
I want to change the script to traverse through a directory of files
ie instea
On 5/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Lots of these scripts have system "" on them which of course I
can't run on Windows. Can anyone suggest how to get around this? Or any white
papers on how to do this?
If you have sufficient access to the windows computers (and you want
abs
On 5/22/06, SkyBlueshoes <[EMAIL PROTECTED]> wrote:
Which module would be best to build an array of all files within a
directory and all subdirectories matching the extension? I will need the
full path to those files included with the filename in the array...
I'm not sure if there's a more fitti
On 5/14/06, Chad Perrin <[EMAIL PROTECTED]> wrote:
If, however, I have the markup with which I want to wrap my Perl output
defined in foo.shtml, and bar.pl only outputs the stuff that needs to be
dynamically generated by the Perl script, I get this output in my
browser:
[an error occurred
> how can i open a gnome file browser through perl ?
Try this:
system("/usr/bin/nautilus --browser --no-desktop .");
Or:
system("/usr/bin/nautilus --browser --no-desktop . &");
If you want to run it in the background (and let your Perl program continue).
Hope that helps,
Ricky
--
To unsubscribe,
11 matches
Mail list logo