Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Using wildcards to open files.

by brap (Pilgrim)
on Oct 26, 2012 at 13:31 UTC ( #1001079=note: print w/replies, xml ) Need Help??


in reply to Using wildcards to open files.

Hi starface245,

The error message you provided leads me to believe you're on a Windows system. If that's not the case, this might not work, so feel free to disregard.

Putting the file name itself in double quotes might be the answer here.

$cmd = "perl script.pl < \"$file\""; (somewhat tested)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001079]
help
Chatterbox?
[stevieb]: agreed. That's why I said at least a half-dozen. If enough of the different formats are present, the date/time folk may not have to request more. If they do, then at least there was a decent base to start with
[stevieb]: I do date and time transformations in both Perl and Python, but not frequently enough to not have to search for the format params etc ;)
[LanX]: The horror! The horror

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2017-04-29 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.