Thoenen, Peter Mr. EPS wrote:

>Hello,
>
>Does * work with perl (on windows 2000) via command line to go through all
>files in a directory?
>
>Tried the following command:
>
>E:\snmp_cfg>perl -i[bck] -pe "s/\/php\/eps\/net$/\/htdocs\/eps\/net/;" *.cfg
>
>and got the error:
>
>Can't open *.cfg: Invalid argument.
>
>Perl docs seems to suggest this would work so don't see where I m going
>wrong.
>  
>
This is from a very old note (1998!)  that Jan Dubois sent:

Place the following file into ActivePerl/site/lib/Wild.pm:

    # Wild.pm - emulate shell @ARGV expansion on shells that don't
    use File::DosGlob;
    @ARGV = map {
        my @g = File::DosGlob::glob($_) if /[*?]/;
        @g ? @g : $_;
    } @ARGV;
    1;


Then you can use:  perl -MWild -e "print @ARGV" *.txt    from the 
command line.   I think that there was a similar module that Jenda K. 
wrote, but I can't find the note.

>Cheers,
>
>-Peter
>
>##################################
>Peter Thoenen - Systems Programmer
>Commercial Communications
>Camp Bondsteel, Kosovo
>##################################
>
>"Stumbled Upon"...heh (Score:5, Funny) /.
>by $carab on 23:00 23 August 2002 (#4131637)
>
>"ForensicTec officials said they stumbled upon the military networks about
>two months ago, while checking on network security for a private-sector
>client."
>
>Someone new to a Dvorak probably tried to type in "lynx
>http://www.google.com"; but instead got "nmap -v -p 1-1024 -sS -P0 army.mil
>-T paranoid".
>_______________________________________________
>Perl-Win32-Users mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
>
>
>  
>



_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to